~rjpcasalino/bss

55682be489c0acacf6d443a6d272ae43f58ea857 — rjpcasalino 2 months ago 2d3013d master
add flake.nix
1 files changed, 21 insertions(+), 0 deletions(-)

A flake.nix
A flake.nix => flake.nix +21 -0
@@ 0,0 1,21 @@
{
  description = "A flake for building bss";

  inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-20.03;

  outputs = { self, nixpkgs }: {
  
    defaultPackage.x86_64-linux =
      with import nixpkgs { system = "x86_64-linux"; };
      stdenv.mkDerivation {
        name = "bss";
        src = self;
        buildInputs = [ perl ];
        preInstall = ''
         echo -n "$src"
        '';
        installPhase = "mkdir -p $out/bin; cp bss.pl $out/bin/bss";
      };

  };
}