1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/virtualization/containerd/default.nix

40 lines
877 B
Nix
Raw Normal View History

2017-03-11 14:07:56 +00:00
{ stdenv, lib, fetchFromGitHub, removeReferencesTo
2016-05-21 17:19:11 +01:00
, go, libapparmor, apparmor-parser, libseccomp }:
with lib;
stdenv.mkDerivation rec {
name = "containerd-${version}";
2017-08-29 01:22:00 +01:00
version = "0.2.9";
2016-05-21 17:19:11 +01:00
src = fetchFromGitHub {
2017-08-29 01:22:00 +01:00
owner = "containerd";
2016-05-21 17:19:11 +01:00
repo = "containerd";
rev = "v${version}";
2017-08-29 01:22:00 +01:00
sha256 = "0rix0mv203fn3rcxmpqdpb54l1a0paqplg2xgldpd943qi1rm552";
2016-05-21 17:19:11 +01:00
};
2017-03-11 14:07:56 +00:00
buildInputs = [ removeReferencesTo go ];
2016-05-21 17:19:11 +01:00
preBuild = ''
ln -s $(pwd) vendor/src/github.com/containerd/containerd
2016-05-21 17:19:11 +01:00
'';
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 17:19:11 +01:00
'';
meta = {
homepage = https://containerd.tools/;
description = "A daemon to control runC";
license = licenses.asl20;
maintainers = with maintainers; [ offline ];
platforms = platforms.linux;
};
}