git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #38466 from thefloweringash/apg-unix

apg: Darwin support

commitc45eadf31ddf61328a33dc9215c4b1f1f4f2c0d2 authorDaiderd Jordan <daiderd@gmail.com> dateThu 5 Apr 2018, 19:12 (9 years ago) parent05f175eb206311
2 files changed+16−2
pkgs/tools/security/apg/default.nix+5−2 pkgs/tools/security/apg/phony-install-target.patch+11
pkgs/tools/security/apg/default.nix+5−2
@@ -10,7 +10,10 @@ stdenv.mkDerivation rec {
1010 '';
1111 makeFlags = stdenv.lib.optionals stdenv.isDarwin ["CC=cc"];
1212
13− patches = [ ./apg.patch ];
13+ patches = [
14+ ./apg.patch
15+ ./phony-install-target.patch
16+ ];
1417
1518 postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
1619 sed -i -e 's|APG_CLIBS += -lcrypt|APG_CLIBS += -L${openssl.out}/lib -lcrypto|' Makefile
@@ -64,6 +67,6 @@ stdenv.mkDerivation rec {
6467 homepage = http://www.adel.nursat.kz/apg/;
6568 license = stdenv.lib.licenses.bsd3;
6669 maintainers = with stdenv.lib.maintainers; [ astsmtl ];
67− platforms = stdenv.lib.platforms.linux;
70+ platforms = stdenv.lib.platforms.unix;
6871 };
6972}
pkgs/tools/security/apg/phony-install-target.patchnew file+11
@@ -0,0 +1,11 @@
1+diff -ur a/Makefile b/Makefile
2+--- a/Makefile 2003-08-08 00:40:39.000000000 +0900
3++++ b/Makefile 2018-04-05 22:29:39.284191020 +0900
4+@@ -142,6 +142,7 @@
5+ strip ${CS_PROGNAME}
6+ strip ${BFM_PROGNAME}
7+
8++.PHONY: install
9+ install:
10+ if test -x ./apg; then \
11+ ./mkinstalldirs ${INSTALL_PREFIX}${APG_BIN_DIR}; \