mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
apg: Permit building again on Darwin
This commit is contained in:
parent
ccb0ba56ef
commit
426c513c14
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl }:
|
||||
{ stdenv, fetchurl, openssl }:
|
||||
stdenv.mkDerivation rec {
|
||||
name = "apg-2.3.0b";
|
||||
src = fetchurl {
|
||||
@ -8,9 +8,14 @@ stdenv.mkDerivation rec {
|
||||
configurePhase = ''
|
||||
substituteInPlace Makefile --replace /usr/local "$out"
|
||||
'';
|
||||
makeFlags = stdenv.lib.optionals stdenv.isDarwin ["CC=cc"];
|
||||
|
||||
patches = [ ./apg.patch ];
|
||||
|
||||
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
sed -i -e 's|APG_CLIBS += -lcrypt|APG_CLIBS += -L${openssl.out}/lib -lcrypto|' Makefile
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Tools for random password generation";
|
||||
longDescription = ''
|
||||
|
Loading…
Reference in New Issue
Block a user