@@ -1,4 +1,4 @@
1−{ stdenv, lib, fetchFromGitHub, go }:
1+{ stdenv, lib, fetchFromGitHub, go, removeReferencesTo }:
22
33stdenv.mkDerivation rec {
44 name = "cni-plugins-${version}";
@@ -11,7 +11,9 @@ stdenv.mkDerivation rec {
1111 sha256 = "1sywllwnr6lc812sgkqjdd3y10r82shl88dlnwgnbgzs738q2vp2";
1212 };
1313
14− buildInputs = [ go ];
14+ buildInputs = [ removeReferencesTo go ];
15+
16+ GOCACHE = "off";
1517
1618 buildPhase = ''
1719 patchShebangs build.sh
@@ -23,6 +25,10 @@ stdenv.mkDerivation rec {
2325 mv bin/* $out/bin
2426 '';
2527
28+ preFixup = ''
29+ find $out/bin -type f -exec remove-references-to -t ${go} '{}' +
30+ '';
31+
2632 meta = with lib; {
2733 description = "Some standard networking plugins, maintained by the CNI team";
2834 homepage = https://github.com/containernetworking/plugins;