openssl: fix tests, also cleanup
This commit is contained in:
parent
86999f6883
commit
7ea0904347
@ -24,11 +24,19 @@ let
|
|||||||
++ optional (versionOlder version "1.0.2" && hostPlatform.isDarwin)
|
++ optional (versionOlder version "1.0.2" && hostPlatform.isDarwin)
|
||||||
./darwin-arch.patch;
|
./darwin-arch.patch;
|
||||||
|
|
||||||
postPatch = if (versionAtLeast version "1.1.0" && stdenv.hostPlatform.isMusl) then ''
|
postPatch = ''
|
||||||
substituteInPlace crypto/async/arch/async_posix.h \
|
patchShebangs Configure
|
||||||
--replace '!defined(__ANDROID__) && !defined(__OpenBSD__)' \
|
'' + optionalString (versionOlder version "1.1.0") ''
|
||||||
'!defined(__ANDROID__) && !defined(__OpenBSD__) && 0'
|
patchShebangs test/*
|
||||||
'' else null;
|
for a in test/t* ; do
|
||||||
|
substituteInPlace "$a" \
|
||||||
|
--replace /bin/rm rm
|
||||||
|
done
|
||||||
|
'' + optionalString (versionAtLeast version "1.1.0" && stdenv.hostPlatform.isMusl) ''
|
||||||
|
substituteInPlace crypto/async/arch/async_posix.h \
|
||||||
|
--replace '!defined(__ANDROID__) && !defined(__OpenBSD__)' \
|
||||||
|
'!defined(__ANDROID__) && !defined(__OpenBSD__) && 0'
|
||||||
|
'';
|
||||||
|
|
||||||
outputs = [ "bin" "dev" "out" "man" ];
|
outputs = [ "bin" "dev" "out" "man" ];
|
||||||
setOutputFlags = false;
|
setOutputFlags = false;
|
||||||
@ -38,6 +46,7 @@ let
|
|||||||
buildInputs = stdenv.lib.optional withCryptodev cryptodevHeaders;
|
buildInputs = stdenv.lib.optional withCryptodev cryptodevHeaders;
|
||||||
|
|
||||||
# TODO(@Ericson2314): Improve with mass rebuild
|
# TODO(@Ericson2314): Improve with mass rebuild
|
||||||
|
configurePlatforms = [];
|
||||||
configureScript = {
|
configureScript = {
|
||||||
"x86_64-darwin" = "./Configure darwin64-x86_64-cc";
|
"x86_64-darwin" = "./Configure darwin64-x86_64-cc";
|
||||||
"x86_64-solaris" = "./Configure solaris64-x86_64-gcc";
|
"x86_64-solaris" = "./Configure solaris64-x86_64-gcc";
|
||||||
@ -56,13 +65,6 @@ let
|
|||||||
throw "Not sure what configuration to use for ${hostPlatform.config}"
|
throw "Not sure what configuration to use for ${hostPlatform.config}"
|
||||||
);
|
);
|
||||||
|
|
||||||
# TODO(@Ericson2314): Make unconditional on mass rebuild
|
|
||||||
${if buildPlatform != hostPlatform then "configurePlatforms" else null} = [];
|
|
||||||
|
|
||||||
preConfigure = ''
|
|
||||||
patchShebangs Configure
|
|
||||||
'';
|
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"shared" # "shared" builds both shared and static libraries
|
"shared" # "shared" builds both shared and static libraries
|
||||||
"--libdir=lib"
|
"--libdir=lib"
|
||||||
|
Loading…
Reference in New Issue
Block a user