libcap: remove runtime reference to go (#373067)

This commit is contained in:
K900
2025-01-12 11:58:42 +03:00
committed by GitHub
+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