diff --git a/pkgs/applications/networking/cluster/openshift/default.nix b/pkgs/applications/networking/cluster/openshift/default.nix index 3b96ef4ea45..fb88dfdbb64 100644 --- a/pkgs/applications/networking/cluster/openshift/default.nix +++ b/pkgs/applications/networking/cluster/openshift/default.nix @@ -33,7 +33,9 @@ in buildGoPackage rec { goPackagePath = "github.com/openshift/origin"; - buildInputs = [ which rsync go-bindata kerberos clang ]; + buildInputs = [ kerberos ]; + + nativeBuildInputs = [ which rsync go-bindata clang ]; patchPhase = '' patchShebangs ./hack diff --git a/pkgs/applications/networking/mailreaders/aerc/default.nix b/pkgs/applications/networking/mailreaders/aerc/default.nix index 0fa30a85d1b..7b24ed93406 100644 --- a/pkgs/applications/networking/mailreaders/aerc/default.nix +++ b/pkgs/applications/networking/mailreaders/aerc/default.nix @@ -17,10 +17,8 @@ in buildGoModule rec { modSha256 = "127xrah6xxrvc224g5dxn432sagrssx8v7phzapcsdajsnmagq6x"; nativeBuildInputs = [ - go scdoc python3.pkgs.wrapPython - notmuch ]; patches = [ @@ -31,7 +29,7 @@ in buildGoModule rec { python3.pkgs.colorama ]; - buildInputs = [ python3 perl ]; + buildInputs = [ python3 notmuch ]; GOFLAGS="-tags=notmuch"; diff --git a/pkgs/applications/networking/p2p/magnetico/default.nix b/pkgs/applications/networking/p2p/magnetico/default.nix index 94720f35504..efab9aa992a 100644 --- a/pkgs/applications/networking/p2p/magnetico/default.nix +++ b/pkgs/applications/networking/p2p/magnetico/default.nix @@ -13,7 +13,7 @@ buildGoModule rec { modSha256 = "1h9fij8mxlxfw7kxix00n10fkhkvmf8529fxbk1n30cxc1bs2szf"; - buildInputs = [ go-bindata ]; + nativeBuildInputs = [ go-bindata ]; buildPhase = '' make magneticow magneticod ''; diff --git a/pkgs/applications/virtualization/gvisor/containerd-shim.nix b/pkgs/applications/virtualization/gvisor/containerd-shim.nix index 0161a117def..d30897df79e 100644 --- a/pkgs/applications/virtualization/gvisor/containerd-shim.nix +++ b/pkgs/applications/virtualization/gvisor/containerd-shim.nix @@ -1,4 +1,4 @@ -{ lib, fetchFromGitHub, buildGoModule, go-bindata }: +{ lib, fetchFromGitHub, buildGoModule }: buildGoModule rec { name = "gvisor-containerd-shim-${version}"; diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix index 1bf13c18821..42b446b9fa8 100644 --- a/pkgs/development/go-modules/generic/default.nix +++ b/pkgs/development/go-modules/generic/default.nix @@ -208,6 +208,8 @@ let find $out/bin -type f -exec ${removeExpr removeReferences} '{}' + || true ''; + strictDeps = true; + disallowedReferences = lib.optional (!allowGoReference) go; passthru = passthru // { inherit go go-modules modSha256; }; diff --git a/pkgs/servers/documize-community/default.nix b/pkgs/servers/documize-community/default.nix index 0607902295a..7780d900bad 100644 --- a/pkgs/servers/documize-community/default.nix +++ b/pkgs/servers/documize-community/default.nix @@ -13,7 +13,7 @@ buildGoModule rec { modSha256 = "1z0v7n8klaxcqv7mvzf3jzgrp78zb4yiibx899ppk6i5qnj4xiv0"; - buildInputs = [ go-bindata-assetfs go-bindata ]; + nativeBuildInputs = [ go-bindata go-bindata-assetfs ]; subPackages = [ "edition/community.go" ]; diff --git a/pkgs/servers/imgproxy/default.nix b/pkgs/servers/imgproxy/default.nix index be78e1aa831..4cdfddcff6f 100644 --- a/pkgs/servers/imgproxy/default.nix +++ b/pkgs/servers/imgproxy/default.nix @@ -13,11 +13,9 @@ buildGoModule rec { modSha256 = "0kgd8lwcdns3skvd4bj4z85mq6hkk79mb0zzwky0wqxni8f73s6w"; - buildInputs = [ - gobject-introspection - pkg-config - vips - ]; + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ gobject-introspection vips ]; preBuild = '' export CGO_LDFLAGS_ALLOW='-(s|w)' diff --git a/pkgs/servers/teleport/default.nix b/pkgs/servers/teleport/default.nix index dc92a10fe24..1e1c0f938db 100644 --- a/pkgs/servers/teleport/default.nix +++ b/pkgs/servers/teleport/default.nix @@ -14,8 +14,11 @@ buildGoPackage rec { }; goPackagePath = "github.com/gravitational/teleport"; + subPackages = [ "tool/tctl" "tool/teleport" "tool/tsh" ]; - buildInputs = [ zip ]; + + nativeBuildInputs = [ zip ]; + postBuild = '' pushd . cd $NIX_BUILD_TOP/go/src/github.com/gravitational/teleport @@ -27,7 +30,7 @@ buildGoPackage rec { cd $NIX_BUILD_TOP/go/bin zip -q -A teleport popd - ''; + ''; dontStrip = true;