709b6f664e
* Fix reference CNI plugins * The plugins were split out of the upstream cni repo around version 0.6.0 * Fix RBAC and DNS tests * Fix broken apiVersion fields * Change plugin linking to look in ${package}/bin rather than ${package.plugins} * Initial work towards a working e2e test * Test still fails, but at least the expression evaluates now Continues @srhb's work in #37199 Fixes #37199
34 lines
747 B
Nix
34 lines
747 B
Nix
{ stdenv, fetchFromGitHub, go }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "cni-${version}";
|
|
version = "0.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "containernetworking";
|
|
repo = "cni";
|
|
rev = "v${version}";
|
|
sha256 = "00ajs2r5r2z3l0vqwxrcwhjfc9px12qbcv5vnvs2mdipvvls1y2y";
|
|
};
|
|
|
|
buildInputs = [ go ];
|
|
|
|
buildPhase = ''
|
|
patchShebangs build.sh
|
|
./build.sh
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
mv bin/cnitool $out/bin
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Container Network Interface - networking for Linux containers";
|
|
license = licenses.asl20;
|
|
homepage = https://github.com/containernetworking/cni;
|
|
maintainers = with maintainers; [offline];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|