Merge pull request #242404 from Artturin/splitoutputs

This commit is contained in:
Artturi 2023-07-10 01:45:27 +03:00 committed by GitHub
commit 4756912233
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
pname = "botan";
version = "${baseVersion}.${revision}";
outputs = [ "out" "dev" ];
src = fetchurl {
name = "Botan-${version}.${sourceExtension}";
urls = [
@ -30,7 +32,9 @@ stdenv.mkDerivation rec {
++ lib.optionals stdenv.isDarwin [ CoreServices Security ];
configurePhase = ''
runHook preConfigure
python configure.py --prefix=$out --with-bzip2 --with-zlib ${extraConfigureFlags}${lib.optionalString stdenv.cc.isClang " --cc=clang"}
runHook postConfigure
'';
enableParallelBuilding = true;

View File

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
configureFlags = [
"--with-crypto-backend=botan"
"--with-botan=${botan2}"
"--with-botan=${lib.getDev botan2}"
"--sysconfdir=$out/etc"
"--localstatedir=$out/var"
];