2017-03-11 14:07:56 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, removeReferencesTo
|
2016-05-21 16:19:11 +00:00
|
|
|
, go, libapparmor, apparmor-parser, libseccomp }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "containerd-${version}";
|
2017-01-11 08:32:06 +00:00
|
|
|
version = "0.2.5";
|
2016-05-21 16:19:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "docker";
|
|
|
|
repo = "containerd";
|
|
|
|
rev = "v${version}";
|
2017-01-11 08:32:06 +00:00
|
|
|
sha256 = "16p8kixhzdx8afpciyf3fjx43xa3qrqpx06r5aqxdrqviw851zh8";
|
2016-05-21 16:19:11 +00:00
|
|
|
};
|
|
|
|
|
2017-03-11 14:07:56 +00:00
|
|
|
buildInputs = [ removeReferencesTo go ];
|
2016-05-21 16:19:11 +00:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
ln -s $(pwd) vendor/src/github.com/docker/containerd
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp bin/* $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
2017-03-11 14:07:56 +00:00
|
|
|
find $out -type f -exec remove-references-to -t ${go} '{}' +
|
2016-05-21 16:19:11 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://containerd.tools/;
|
|
|
|
description = "A daemon to control runC";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ offline ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|