goperf: unstable-2023-11-08 -> 0-unstable-2023-11-08
And fix an issue with the updateScript which prevented it from working:
error: attribute 'go-modules' in selection path 'goperf.go-modules.drvAttrs.outputHash' not found
Did you mean goModules?
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "goperf";
|
||||
version = "unstable-2023-11-08";
|
||||
version = "0-unstable-2023-11-08";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://go.googlesource.com/perf";
|
||||
@@ -22,8 +22,8 @@ buildGoModule rec {
|
||||
export UPDATE_NIX_ATTR_PATH=goperf
|
||||
${lib.escapeShellArgs (unstableGitUpdater { inherit (src) url; })}
|
||||
set -x
|
||||
oldhash="$(nix-instantiate . --eval --strict -A "goperf.go-modules.drvAttrs.outputHash" | cut -d'"' -f2)"
|
||||
newhash="$(nix-build -A goperf.go-modules --no-out-link 2>&1 | tail -n3 | grep 'got:' | cut -d: -f2- | xargs echo || true)"
|
||||
oldhash="$(nix-instantiate . --eval --strict -A "goperf.goModules.drvAttrs.outputHash" | cut -d'"' -f2)"
|
||||
newhash="$(nix-build -A goperf.goModules --no-out-link 2>&1 | tail -n3 | grep 'got:' | cut -d: -f2- | xargs echo || true)"
|
||||
fname="$(nix-instantiate --eval -E 'with import ./. {}; (builtins.unsafeGetAttrPos "version" goperf).file' | cut -d'"' -f2)"
|
||||
${lib.getExe sd} --string-mode "$oldhash" "$newhash" "$fname"
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user