gis/flake.nix
2023-09-19 11:06:37 +02:00

25 lines
687 B
Nix

{
description = "Show a status summary of 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;
});
};
}