mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
f66a510db8
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. These checks were done: - built on NixOS - Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.) - found 0.7.1 with grep in /nix/store/ddh9jrgh4df6s6kj6ywc6clnprfggp75-cni-plugins-0.7.1 - directory tree listing: https://gist.github.com/2260aa864704a4bc411b23f3147315e9
34 lines
757 B
Nix
34 lines
757 B
Nix
{ stdenv, lib, fetchFromGitHub, go }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "cni-plugins-${version}";
|
|
version = "0.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "containernetworking";
|
|
repo = "plugins";
|
|
rev = "v${version}";
|
|
sha256 = "1sywllwnr6lc812sgkqjdd3y10r82shl88dlnwgnbgzs738q2vp2";
|
|
};
|
|
|
|
buildInputs = [ go ];
|
|
|
|
buildPhase = ''
|
|
patchShebangs build.sh
|
|
./build.sh
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
mv bin/* $out/bin
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|