-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
26 lines (25 loc) · 784 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
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
install -m 644 -D gis_completion.bash $out/share/bash-completion/completions/gis
'';
};
default = self.packages.${system}.gis;
});
};
}