mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
6baeaa0e1b
Semi-automatic update. These checks were done: - built on NixOS - ran `/nix/store/p41wb0fqnvn4bx6jjs7hs98xlrzp8s79-tini-0.17.0/bin/tini -h` got 0 exit code - ran `/nix/store/p41wb0fqnvn4bx6jjs7hs98xlrzp8s79-tini-0.17.0/bin/tini --version` and found version 0.17.0 - ran `/nix/store/p41wb0fqnvn4bx6jjs7hs98xlrzp8s79-tini-0.17.0/bin/tini -h` and found version 0.17.0 - found 0.17.0 with grep in /nix/store/p41wb0fqnvn4bx6jjs7hs98xlrzp8s79-tini-0.17.0 - found 0.17.0 in filename of file in /nix/store/p41wb0fqnvn4bx6jjs7hs98xlrzp8s79-tini-0.17.0
30 lines
692 B
Nix
30 lines
692 B
Nix
{ stdenv, fetchFromGitHub, cmake, glibc }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.17.0";
|
|
name = "tini-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "krallin";
|
|
repo = "tini";
|
|
rev = "v${version}";
|
|
sha256 ="0y16xk89811a6g2srg63jv5b2221dirzrhha7mj056a6jq5ql2f0";
|
|
};
|
|
|
|
patchPhase = "sed -i /tini-static/d CMakeLists.txt";
|
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
"-DPR_SET_CHILD_SUBREAPER=36"
|
|
"-DPR_GET_CHILD_SUBREAPER=37"
|
|
];
|
|
|
|
buildInputs = [ cmake glibc glibc.static ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A tiny but valid init for containers";
|
|
homepage = https://github.com/krallin/tini;
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|