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