add flake
This commit is contained in:
parent
2f63d99e5f
commit
a89828178d
2 changed files with 50 additions and 0 deletions
25
flake.nix
Normal file
25
flake.nix
Normal 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;
|
||||
});
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue