nix: fix script
This commit is contained in:
parent
256f85024f
commit
aea7ff1c89
@ -11,7 +11,7 @@ BEGIN {
|
|||||||
/tag/ && isGit == true { ref=$2 }
|
/tag/ && isGit == true { ref=$2 }
|
||||||
|
|
||||||
isGit == true && loc != "" && ref != "" {
|
isGit == true && loc != "" && ref != "" {
|
||||||
cmd = "nix-prefetch-git --quiet "loc" "ref" | jq -r .sha256"
|
cmd = "nix-prefetch-git --fetch-submodules --quiet "loc" "ref" | jq -r .sha256"
|
||||||
cmd | getline sha256
|
cmd | getline sha256
|
||||||
close(cmd)
|
close(cmd)
|
||||||
print " \""loc"\".\""ref"\" = \""sha256"\";";
|
print " \""loc"\".\""ref"\" = \""sha256"\";";
|
||||||
|
Loading…
Reference in New Issue
Block a user