diff options
author | Keto <therealketo@gmail.com> | 2023-09-04 00:30:00 -0400 |
---|---|---|
committer | Keto <therealketo@gmail.com> | 2023-09-04 00:30:00 -0400 |
commit | 9624bf57366d27bfd686b113c57b5a7dcc88f0ed (patch) | |
tree | 25b31c25833ac8db983de6fd9e707af618a94a5e /pkgs/development/tools/ldid-procursus | |
parent | 2540f5c05c4223228b58700b5690486658c719bb (diff) | |
download | nixlib-9624bf57366d27bfd686b113c57b5a7dcc88f0ed.tar nixlib-9624bf57366d27bfd686b113c57b5a7dcc88f0ed.tar.gz nixlib-9624bf57366d27bfd686b113c57b5a7dcc88f0ed.tar.bz2 nixlib-9624bf57366d27bfd686b113c57b5a7dcc88f0ed.tar.lz nixlib-9624bf57366d27bfd686b113c57b5a7dcc88f0ed.tar.xz nixlib-9624bf57366d27bfd686b113c57b5a7dcc88f0ed.tar.zst nixlib-9624bf57366d27bfd686b113c57b5a7dcc88f0ed.zip |
ldid-procursus: install zsh completion
Install zsh completion and fix cross-compilation Signed-off-by: Keto <therealketo@gmail.com> Co-authored-by: Artturin <Artturin@artturin.com>
Diffstat (limited to 'pkgs/development/tools/ldid-procursus')
-rw-r--r-- | pkgs/development/tools/ldid-procursus/default.nix | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/pkgs/development/tools/ldid-procursus/default.nix b/pkgs/development/tools/ldid-procursus/default.nix index 52866b041c0c..b9ffbb2fc871 100644 --- a/pkgs/development/tools/ldid-procursus/default.nix +++ b/pkgs/development/tools/ldid-procursus/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitHub +, installShellFiles , pkg-config , libplist , openssl @@ -9,17 +10,31 @@ 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 libplist openssl ]; + + 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 ]; |