2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2023-10-09 19:29:22 +00:00
|
|
|
, installShellFiles
|
2023-08-04 22:07:22 +00:00
|
|
|
, pkg-config
|
|
|
|
, libplist
|
|
|
|
, openssl
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "ldid-procursus";
|
|
|
|
version = "2.1.5-procursus7";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ProcursusTeam";
|
|
|
|
repo = "ldid";
|
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-QnSmWY9zCOPYAn2VHc5H+VQXjTCyr0EuosxvKGGpDtQ=";
|
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config installShellFiles ];
|
|
|
|
buildInputs = [ libplist openssl ];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
stripDebugFlags = [ "--strip-unneeded" ];
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace "pkg-config" "$PKG_CONFIG"
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd ldid --zsh _ldid
|
|
|
|
'';
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
meta = with lib; {
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "ldid";
|
2023-08-04 22:07:22 +00:00
|
|
|
description = "Put real or fake signatures in a Mach-O binary";
|
|
|
|
homepage = "https://github.com/ProcursusTeam/ldid";
|
|
|
|
maintainers = with maintainers; [ keto ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.agpl3Only;
|
|
|
|
};
|
|
|
|
})
|