libcap: remove runtime reference to `go` (#373067)

(cherry picked from commit 257330eed62ea5bfce1c2230f1e30fff111a8700)

authored by K900 and committed by Vladimír Čunát 4eec8b98 a53c263a

+8 -1
+8 -1
pkgs/by-name/li/libcap/package.nix
··· 32 32 33 33 depsBuildBuild = [ 34 34 buildPackages.stdenv.cc 35 - ] ++ lib.optionals withGo [ 35 + ]; 36 + 37 + nativeBuildInputs = lib.optionals withGo [ 36 38 go 37 39 ]; 38 40 ··· 47 49 ] ++ lib.optionals withGo [ 48 50 "GOLANG=yes" 49 51 ''GOCACHE=''${TMPDIR}/go-cache'' 52 + "GOFLAGS=-trimpath" 50 53 "GOARCH=${go.GOARCH}" 51 54 "GOOS=${go.GOOS}" 52 55 ] ++ lib.optionals isStatic [ "SHARED=no" "LIBCSTATIC=yes" ]; ··· 82 85 ''; 83 86 84 87 strictDeps = true; 88 + 89 + disallowedReferences = lib.optionals withGo [ 90 + go 91 + ]; 85 92 86 93 passthru.tests = { 87 94 inherit