libcap: remove runtime reference to go (#373067)

(cherry picked from commit 257330eed6)
This commit is contained in:
K900
2025-01-16 10:18:02 +01:00
committed by Vladimír Čunát
parent a53c263a2c
commit 4eec8b9808
+8 -1
View File
@@ -32,7 +32,9 @@ stdenv.mkDerivation rec {
depsBuildBuild = [
buildPackages.stdenv.cc
] ++ lib.optionals withGo [
];
nativeBuildInputs = lib.optionals withGo [
go
];
@@ -47,6 +49,7 @@ stdenv.mkDerivation rec {
] ++ lib.optionals withGo [
"GOLANG=yes"
''GOCACHE=''${TMPDIR}/go-cache''
"GOFLAGS=-trimpath"
"GOARCH=${go.GOARCH}"
"GOOS=${go.GOOS}"
] ++ lib.optionals isStatic [ "SHARED=no" "LIBCSTATIC=yes" ];
@@ -83,6 +86,10 @@ stdenv.mkDerivation rec {
strictDeps = true;
disallowedReferences = lib.optionals withGo [
go
];
passthru.tests = {
inherit
bind