forked from M-Labs/nix-scripts
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:
parent
56ab6e3d88
commit
22d2efd2ca
7
main.nix
7
main.nix
@ -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
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user