diff options
author | Robert Helgesson <robert@rycee.net> | 2016-04-17 17:37:43 +0200 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2016-04-18 22:16:28 +0200 |
commit | 6df0c74cbdd2a3336f58bb2470e7529edfddcf2a (patch) | |
tree | 2b84a7df37e474e8e3266583e454aaf742afd8dc /pkgs/servers/openxpki | |
parent | b4bf4327097265d855ad04f09759bd2eeb73aed1 (diff) |
openxpki: fix build
The openxpki build is not liking the multiple outputs of openssl. This commit fixes the build, unfortunately not in the prettiest of ways.
Diffstat (limited to 'pkgs/servers/openxpki')
-rw-r--r-- | pkgs/servers/openxpki/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/servers/openxpki/default.nix b/pkgs/servers/openxpki/default.nix index dd1ed7c473b73..12ed3f56d9f44 100644 --- a/pkgs/servers/openxpki/default.nix +++ b/pkgs/servers/openxpki/default.nix @@ -50,7 +50,10 @@ buildPerlPackage { lib libapreq2 libnet podlators threads threadsshared version ]; preConfigure = '' - export OPENSSL_PREFIX=${openssl} + substituteInPlace core/server/Makefile.PL \ + --replace "my \$openssl_inc_dir = ''';" "my \$openssl_inc_dir = '${openssl}/include';" \ + --replace "my \$openssl_lib_dir = ''';" "my \$openssl_lib_dir = '${openssl.out}/lib';" \ + --replace "my \$openssl_binary = ''';" "my \$openssl_binary = '${openssl.bin}/bin/openssl';" substituteInPlace tools/vergen --replace "#!/usr/bin/perl" "#!${perl}/bin/perl" cp ${./vergen_revision_state} .vergen_revision_state cd core/server |