ldid-procursus: Fix (possible) memory issues

Some entitlements can lead to unexepected behavior, causing
the entire program to hang until all memory is leaked
This commit is contained in:
Keto 2024-09-01 22:32:00 -04:00
parent 135d180253
commit 97ceb876f0
No known key found for this signature in database
GPG Key ID: F256D023018D9970

View File

@ -3,6 +3,7 @@
stdenv,
fetchFromGitHub,
installShellFiles,
fetchpatch,
pkg-config,
libplist,
openssl,
@ -32,9 +33,19 @@ stdenv.mkDerivation (finalAttrs: {
stripDebugFlags = [ "--strip-unneeded" ];
makeFlags = [ "PREFIX=${placeholder "out"}" ];
dontConfigure = true;
patches = [
(fetchpatch {
name = "fix-memory-issues-with-various-entitlements.patch";
url = "https://github.com/ProcursusTeam/ldid/commit/f38a095aa0cc721c40050cb074116c153608a11b.patch";
hash = "sha256-D5o/E2tCbuNOv2D9UVaLEx8ZiwSB/wT0hf7XaTGzxE0=";
})
];
postPatch = ''
substituteInPlace Makefile \
--replace "pkg-config" "$PKG_CONFIG"
--replace-fail "pkg-config" "$PKG_CONFIG"
'';
postInstall = ''