openssl-chacha: Split into multiple outputs
Mainly done because of this in all-packages.nix: ```` cipherscan = callPackage ../tools/security/cipherscan { openssl = if stdenv.system == "x86_64-linux" then openssl-chacha else openssl; }; ```` ... and inside cipherscan we want to refer to `openssl.bin`
This commit is contained in:
parent
3f9cfba02c
commit
f34655e28c
@ -14,6 +14,9 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1030rs4bdaysxbq0mmck1dn6g5adspzkwsrnhvv16b4ig0r4ncgj";
|
sha256 = "1030rs4bdaysxbq0mmck1dn6g5adspzkwsrnhvv16b4ig0r4ncgj";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
outputs = [ "dev" "out" "man" "bin" ];
|
||||||
|
setOutputFlags = false;
|
||||||
|
|
||||||
nativeBuildInputs = [ perl zlib ];
|
nativeBuildInputs = [ perl zlib ];
|
||||||
buildInputs = stdenv.lib.optional withCryptodev cryptodevHeaders;
|
buildInputs = stdenv.lib.optional withCryptodev cryptodevHeaders;
|
||||||
|
|
||||||
@ -35,7 +38,7 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"MANDIR=$(out)/share/man"
|
"MANDIR=$(man)/share/man"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Parallel building is broken in OpenSSL.
|
# Parallel building is broken in OpenSSL.
|
||||||
@ -48,8 +51,16 @@ stdenv.mkDerivation rec {
|
|||||||
rm "$out/lib/"*.a
|
rm "$out/lib/"*.a
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
mkdir -p $bin
|
||||||
|
mv $out/bin $bin/
|
||||||
|
|
||||||
|
mkdir $dev
|
||||||
|
mv $out/include $dev/
|
||||||
|
|
||||||
# remove dependency on Perl at runtime
|
# remove dependency on Perl at runtime
|
||||||
rm -r $out/etc/ssl/misc $out/bin/c_rehash
|
rm -r $out/etc/ssl/misc
|
||||||
|
|
||||||
|
rmdir $out/etc/ssl/{certs,private}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user