botan: split dev

out size 28M -> 27M
dev output 1.6M
This commit is contained in:
Artturin 2023-07-09 07:02:31 +03:00
parent aafa2b2c3d
commit 7d11433876
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"
];