3
0
Fork 0
forked from mirrors/nixpkgs

fetchgitrevision: removed

It doesn't work and was last referred to in 5553546c21
This commit is contained in:
Falco Peijnenburg 2017-10-30 18:37:20 +01:00
parent b93df24078
commit 3004b6f150
2 changed files with 0 additions and 12 deletions

View file

@ -1,10 +0,0 @@
runCommand: git: repository: branch:
import (runCommand "head-revision"
{ buildInputs = [ git ];
dummy = builtins.currentTime;
}
''
rev=$(git ls-remote ${repository} | grep "refs/${branch}$" | awk '{ print $1 }')
echo "[ \"$rev\" ]" > $out
echo Latest revision in ${branch} is $rev
'')

View file

@ -144,8 +144,6 @@ with pkgs;
fetchgitPrivate = callPackage ../build-support/fetchgit/private.nix { };
fetchgitrevision = import ../build-support/fetchgitrevision runCommand git;
fetchgitLocal = callPackage ../build-support/fetchgitlocal { };
fetchmtn = callPackage ../build-support/fetchmtn (config.fetchmtn or {});