tini: add patch for cmake minimum version

This commit is contained in:
Robert Rose
2025-10-13 13:05:06 +02:00
parent abedc8e22b
commit af4f868a21
+13
View File
@@ -3,6 +3,7 @@
stdenv,
fetchFromGitHub,
cmake,
fetchpatch,
}:
stdenv.mkDerivation rec {
@@ -16,6 +17,18 @@ stdenv.mkDerivation rec {
sha256 = "1hnnvjydg7gi5gx6nibjjdnfipblh84qcpajc08nvr44rkzswck4";
};
# Note: These patches can be removed with the next release
patches = [
(fetchpatch {
url = "https://github.com/krallin/tini/commit/0b44d3665869e46ccbac7414241b8256d6234dc4.patch";
hash = "sha256-gjM8MaPVx65f7KIry2XVYnVyjoBCQZAp2cQ8m7eW24c=";
})
(fetchpatch {
url = "https://github.com/krallin/tini/commit/071c715e376e9ee0ac1a196fe8c38bcb61ad385c.patch";
hash = "sha256-idnYcVuhCXQuhFSqcrNjbCLhR4HNlv8QonrtBqEbo3A=";
})
];
postPatch = "sed -i /tini-static/d CMakeLists.txt";
env.NIX_CFLAGS_COMPILE = "-DPR_SET_CHILD_SUBREAPER=36 -DPR_GET_CHILD_SUBREAPER=37";