mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
9624bf5736
Install zsh completion and fix cross-compilation Signed-off-by: Keto <therealketo@gmail.com> Co-authored-by: Artturin <Artturin@artturin.com>
44 lines
1 KiB
Nix
44 lines
1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
, pkg-config
|
|
, libplist
|
|
, openssl
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "ldid-procursus";
|
|
version = "2.1.5-procursus7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ProcursusTeam";
|
|
repo = "ldid";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-QnSmWY9zCOPYAn2VHc5H+VQXjTCyr0EuosxvKGGpDtQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config installShellFiles ];
|
|
buildInputs = [ libplist openssl ];
|
|
|
|
stripDebugFlags = [ "--strip-unneeded" ];
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace Makefile \
|
|
--replace "pkg-config" "$PKG_CONFIG"
|
|
'';
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd ldid --zsh _ldid
|
|
'';
|
|
|
|
meta = with lib; {
|
|
mainProgram = "ldid";
|
|
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;
|
|
};
|
|
})
|