cni-plugins: Remove go from runtime closure

This commit is contained in:
adisbladis 2018-12-07 21:14:03 +00:00
parent 54b6c586a6
commit 2a7b82ca44
No known key found for this signature in database
GPG key ID: ED58F95069B004F5

View file

@ -1,4 +1,4 @@
{ stdenv, lib, fetchFromGitHub, go }:
{ stdenv, lib, fetchFromGitHub, go, removeReferencesTo }:
stdenv.mkDerivation rec {
name = "cni-plugins-${version}";
@ -11,7 +11,9 @@ stdenv.mkDerivation rec {
sha256 = "1sywllwnr6lc812sgkqjdd3y10r82shl88dlnwgnbgzs738q2vp2";
};
buildInputs = [ go ];
buildInputs = [ removeReferencesTo go ];
GOCACHE = "off";
buildPhase = ''
patchShebangs build.sh
@ -23,6 +25,10 @@ stdenv.mkDerivation rec {
mv bin/* $out/bin
'';
preFixup = ''
find $out/bin -type f -exec remove-references-to -t ${go} '{}' +
'';
meta = with lib; {
description = "Some standard networking plugins, maintained by the CNI team";
homepage = https://github.com/containernetworking/plugins;