mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
Merge pull request #29300 from vdemeester/update-containerd-1
containerd: 0.2.9 -> 1.0.1
This commit is contained in:
commit
d45b33fbaa
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user