libcap: remove runtime reference to go

This commit is contained in:
Colin
2025-01-12 00:11:21 +00:00
parent 0e4036ae26
commit 64ec158ea8
+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