nix: fix script

This commit is contained in:
Evgeny Poberezkin 2023-12-13 20:27:58 +00:00
parent b3544cfbc3
commit 4c6387c854

View File

@ -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"\";";