mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-11 15:08:52 +03:00
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:
parent
135d180253
commit
97ceb876f0
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user