mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-01 08:25:55 +03:00
tini: fix build
This commit is contained in:
parent
52a875fb23
commit
9a0dfe23d8
@ -7,14 +7,12 @@ stdenv.mkDerivation rec {
|
|||||||
url = "https://github.com/krallin/tini/archive/v0.8.3.tar.gz";
|
url = "https://github.com/krallin/tini/archive/v0.8.3.tar.gz";
|
||||||
sha256 ="1w7rj4crrcyv25idmh4asbp2sxzwyihy5mbpw384bzxjzaxn9xpa";
|
sha256 ="1w7rj4crrcyv25idmh4asbp2sxzwyihy5mbpw384bzxjzaxn9xpa";
|
||||||
};
|
};
|
||||||
|
patchPhase = "sed -i /tini-static/d CMakeLists.txt";
|
||||||
NIX_CFLAGS_COMPILE = [
|
NIX_CFLAGS_COMPILE = [
|
||||||
"-DPR_SET_CHILD_SUBREAPER=36"
|
"-DPR_SET_CHILD_SUBREAPER=36"
|
||||||
"-DPR_GET_CHILD_SUBREAPER=37"
|
"-DPR_GET_CHILD_SUBREAPER=37"
|
||||||
];
|
];
|
||||||
buildInputs = [ cmake ];
|
buildInputs = [ cmake ];
|
||||||
postInstall = ''
|
|
||||||
rm $out/bin/tini-static
|
|
||||||
'';
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A tiny but valid init for containers";
|
description = "A tiny but valid init for containers";
|
||||||
homepage = https://github.com/krallin/tini;
|
homepage = https://github.com/krallin/tini;
|
||||||
|
Loading…
Reference in New Issue
Block a user