mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
Merge pull request #38466 from thefloweringash/apg-unix
apg: Darwin support
This commit is contained in:
commit
c45eadf31d
|
@ -10,7 +10,10 @@ stdenv.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
makeFlags = stdenv.lib.optionals stdenv.isDarwin ["CC=cc"];
|
makeFlags = stdenv.lib.optionals stdenv.isDarwin ["CC=cc"];
|
||||||
|
|
||||||
patches = [ ./apg.patch ];
|
patches = [
|
||||||
|
./apg.patch
|
||||||
|
./phony-install-target.patch
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
sed -i -e 's|APG_CLIBS += -lcrypt|APG_CLIBS += -L${openssl.out}/lib -lcrypto|' Makefile
|
sed -i -e 's|APG_CLIBS += -lcrypt|APG_CLIBS += -L${openssl.out}/lib -lcrypto|' Makefile
|
||||||
|
@ -64,6 +67,6 @@ stdenv.mkDerivation rec {
|
||||||
homepage = http://www.adel.nursat.kz/apg/;
|
homepage = http://www.adel.nursat.kz/apg/;
|
||||||
license = stdenv.lib.licenses.bsd3;
|
license = stdenv.lib.licenses.bsd3;
|
||||||
maintainers = with stdenv.lib.maintainers; [ astsmtl ];
|
maintainers = with stdenv.lib.maintainers; [ astsmtl ];
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
11
pkgs/tools/security/apg/phony-install-target.patch
Normal file
11
pkgs/tools/security/apg/phony-install-target.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
diff -ur a/Makefile b/Makefile
|
||||||
|
--- a/Makefile 2003-08-08 00:40:39.000000000 +0900
|
||||||
|
+++ b/Makefile 2018-04-05 22:29:39.284191020 +0900
|
||||||
|
@@ -142,6 +142,7 @@
|
||||||
|
strip ${CS_PROGNAME}
|
||||||
|
strip ${BFM_PROGNAME}
|
||||||
|
|
||||||
|
+.PHONY: install
|
||||||
|
install:
|
||||||
|
if test -x ./apg; then \
|
||||||
|
./mkinstalldirs ${INSTALL_PREFIX}${APG_BIN_DIR}; \
|
Loading…
Reference in a new issue