@@ -0,0 +1,24 @@
1+{ stdenv, fetchurl, cmake }:
2+
3+stdenv.mkDerivation rec {
4+ version = "0.8.3";
5+ name = "tini-${version}";
6+ src = fetchurl {
7+ url = "https://github.com/krallin/tini/archive/v0.8.3.tar.gz";
8+ sha256 ="1w7rj4crrcyv25idmh4asbp2sxzwyihy5mbpw384bzxjzaxn9xpa";
9+ };
10+ NIX_CFLAGS_COMPILE = [
11+ "-DPR_SET_CHILD_SUBREAPER=36"
12+ "-DPR_GET_CHILD_SUBREAPER=37"
13+ ];
14+ buildInputs = [ cmake ];
15+ postInstall = ''
16+ rm $out/bin/tini-static
17+ '';
18+ meta = with stdenv.lib; {
19+ description = "A tiny but valid init for containers";
20+ homepage = https://github.com/krallin/tini;
21+ license = licenses.mit;
22+ platforms = platforms.linux;
23+ };
24+}