try to use /nix/store entry instead of replicated git checkout

Can't figure out why the hydra and fetchgit hashes differ.
This commit is contained in:
Sebastien Bourdeauducq 2019-02-14 16:07:52 +08:00
parent 56ab6e3d88
commit 22d2efd2ca

View File

@ -8,12 +8,7 @@ let
HASH=`nix-hash --type sha256 --base32 ${artiqSrc}` HASH=`nix-hash --type sha256 --base32 ${artiqSrc}`
cat > $out/pkgs/artiq-src.nix << EOF cat > $out/pkgs/artiq-src.nix << EOF
{ fetchgit }: { fetchgit }:
fetchgit { ${artiqSrc}
url = "git://github.com/m-labs/artiq.git";
rev = "$REV";
sha256 = "$HASH";
deepClone = true;
leaveDotGit = true;
} }
EOF EOF
''; '';