libcap: use correct cross golang cross compiler (#373364)

(cherry picked from commit 619aca53daccee3bd84bfa643b48410ef1a015f1)

authored by Colin and committed by Vladimír Čunát 76c80aa7 4eec8b98

+6 -5
+6 -5
pkgs/by-name/li/libcap/package.nix
··· 1 { stdenv, lib, buildPackages, fetchurl, runtimeShell 2 , usePam ? !isStatic, pam ? null 3 , isStatic ? stdenv.hostPlatform.isStatic 4 - , withGo ? go.meta.available, go 5 6 # passthru.tests 7 , bind ··· 35 ]; 36 37 nativeBuildInputs = lib.optionals withGo [ 38 - go 39 ]; 40 41 buildInputs = lib.optional usePam pam; ··· 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" ]; 56 57 postPatch = '' ··· 87 strictDeps = true; 88 89 disallowedReferences = lib.optionals withGo [ 90 - go 91 ]; 92 93 passthru.tests = {
··· 1 { stdenv, lib, buildPackages, fetchurl, runtimeShell 2 + , pkgsBuildHost 3 , usePam ? !isStatic, pam ? null 4 , isStatic ? stdenv.hostPlatform.isStatic 5 + , withGo ? pkgsBuildHost.go.meta.available 6 7 # passthru.tests 8 , bind ··· 36 ]; 37 38 nativeBuildInputs = lib.optionals withGo [ 39 + pkgsBuildHost.go 40 ]; 41 42 buildInputs = lib.optional usePam pam; ··· 51 "GOLANG=yes" 52 ''GOCACHE=''${TMPDIR}/go-cache'' 53 "GOFLAGS=-trimpath" 54 + "GOARCH=${pkgsBuildHost.go.GOARCH}" 55 + "GOOS=${pkgsBuildHost.go.GOOS}" 56 ] ++ lib.optionals isStatic [ "SHARED=no" "LIBCSTATIC=yes" ]; 57 58 postPatch = '' ··· 88 strictDeps = true; 89 90 disallowedReferences = lib.optionals withGo [ 91 + pkgsBuildHost.go 92 ]; 93 94 passthru.tests = {