1
0
mirror of https://github.com/kmein/niveum synced 2026-03-17 18:41:09 +01:00

fix(packages): reorganize nix-git

This commit is contained in:
Kierán Meinhardt
2020-04-09 18:15:41 +02:00
parent 8890b30e5f
commit d118ce65b7
3 changed files with 8 additions and 4 deletions

View File

@@ -1,4 +0,0 @@
{ writeShellScriptBin, nix-prefetch-git, jq }:
writeShellScriptBin "nix-git" ''
${nix-prefetch-git}/bin/nix-prefetch-git "$@" 2> /dev/null | ${jq}/bin/jq -r '"rev = \"\(.rev)\";\nsha256 = \"\(.sha256)\";"'
''

View File

@@ -86,6 +86,12 @@ in
name = "fkill";
};
nix-git = makeScript {
propagatedBuildInputs = [ pkgs.nix-prefetch-git pkgs.jq ];
src = ./nix-git.sh;
name = "nix-git";
};
bvg = pkgs.callPackage ./bvg.nix {};
nav = pkgs.callPackage ./nav.nix {};
}

View File

@@ -0,0 +1,2 @@
#!/bin/sh
nix-prefetch-git "$@" 2> /dev/null | jq -r '"rev = \"\(.rev)\";\nsha256 = \"\(.sha256)\";"'