add flake

This commit is contained in:
Denis Lehmann 2023-09-16 13:53:34 +02:00
parent 2f63d99e5f
commit a89828178d
2 changed files with 50 additions and 0 deletions

25
flake.nix Normal file
View file

@ -0,0 +1,25 @@
{
description = "Get status information about multiple Git repositories";
outputs = { self, nixpkgs }@inputs:
let
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.platforms.unix;
nixpkgsFor = forAllSystems (system: import nixpkgs {
inherit system;
});
in
{
packages = forAllSystems (system:
let pkgs = nixpkgsFor.${system}; in
{
gis = pkgs.stdenv.mkDerivation {
name = "gis";
src = self;
installPhase = ''
install -m 755 -D gis $out/bin/gis
'';
};
default = self.packages.${system}.gis;
});
};
}