Merge pull request #29300 from vdemeester/update-containerd-1

containerd: 0.2.9 -> 1.0.1
This commit is contained in:
Tim Steinbach 2018-01-18 23:10:13 +00:00 committed by GitHub
commit d45b33fbaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,23 +1,38 @@
{ stdenv, lib, fetchFromGitHub, removeReferencesTo
, go, libapparmor, apparmor-parser, libseccomp }:
, go, libapparmor, apparmor-parser, libseccomp, btrfs-progs }:
with lib;
stdenv.mkDerivation rec {
name = "containerd-${version}";
version = "0.2.9";
version = "1.0.1";
src = fetchFromGitHub {
owner = "containerd";
repo = "containerd";
rev = "v${version}";
sha256 = "0rix0mv203fn3rcxmpqdpb54l1a0paqplg2xgldpd943qi1rm552";
sha256 = "0kfafqi66yp4qy738pl11f050hfrx9m4kc670qpx7fmf9ii7q6p2";
};
buildInputs = [ removeReferencesTo go ];
hardeningDisable = [ "fortify" ];
buildInputs = [ removeReferencesTo go btrfs-progs ];
buildFlags = "VERSION=v${version}";
BUILDTAGS = []
++ optional (btrfs-progs == null) "no_btrfs";
preConfigure = ''
# Extract the source
cd "$NIX_BUILD_TOP"
mkdir -p "go/src/github.com/containerd"
mv "$sourceRoot" "go/src/github.com/containerd/containerd"
export GOPATH=$NIX_BUILD_TOP/go:$GOPATH
'';
preBuild = ''
ln -s $(pwd) vendor/src/github.com/containerd/containerd
cd go/src/github.com/containerd/containerd
patchShebangs .
'';
installPhase = ''