1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 10:56:53 +00:00
nixpkgs/pkgs/applications/virtualization/tini/default.nix

23 lines
646 B
Nix
Raw Normal View History

2015-11-10 20:06:15 +00:00
{ stdenv, fetchurl, cmake }:
stdenv.mkDerivation rec {
version = "0.8.3";
name = "tini-${version}";
src = fetchurl {
url = "https://github.com/krallin/tini/archive/v0.8.3.tar.gz";
sha256 ="1w7rj4crrcyv25idmh4asbp2sxzwyihy5mbpw384bzxjzaxn9xpa";
};
2016-08-13 07:23:20 +01:00
patchPhase = "sed -i /tini-static/d CMakeLists.txt";
2015-11-10 20:06:15 +00:00
NIX_CFLAGS_COMPILE = [
"-DPR_SET_CHILD_SUBREAPER=36"
"-DPR_GET_CHILD_SUBREAPER=37"
];
buildInputs = [ cmake ];
meta = with stdenv.lib; {
description = "A tiny but valid init for containers";
homepage = https://github.com/krallin/tini;
license = licenses.mit;
platforms = platforms.linux;
};
}