ace4a1a351
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/cni-plugins/versions
39 lines
928 B
Nix
39 lines
928 B
Nix
{ stdenv, lib, fetchFromGitHub, go, removeReferencesTo }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cni-plugins";
|
|
version = "0.8.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "containernetworking";
|
|
repo = "plugins";
|
|
rev = "v${version}";
|
|
sha256 = "0gyxa6mhiyxqw4wpn6r7wgr2kyvflzbdcqsk5ch0b6zih98144ia";
|
|
};
|
|
|
|
buildInputs = [ removeReferencesTo go ];
|
|
|
|
buildPhase = ''
|
|
patchShebangs build_linux.sh
|
|
export "GOCACHE=$TMPDIR/go-cache"
|
|
./build_linux.sh
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
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;
|
|
license = licenses.asl20;
|
|
platforms = [ "x86_64-linux" ];
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
};
|
|
}
|