summary refs log tree commit diff
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2023-07-09 07:02:31 +0300
committerArtturin <Artturin@artturin.com>2023-07-09 22:47:38 +0300
commit7d11433876f37d30e8cbf0748ac8a249c68c858b (patch)
treec6ab6b8148471915eb5a3c283e08f2b7571e1562
parentaafa2b2c3d46081f1009d87ad55d438390875254 (diff)
downloadnixpkgs-7d11433876f37d30e8cbf0748ac8a249c68c858b.tar
nixpkgs-7d11433876f37d30e8cbf0748ac8a249c68c858b.tar.gz
nixpkgs-7d11433876f37d30e8cbf0748ac8a249c68c858b.tar.bz2
nixpkgs-7d11433876f37d30e8cbf0748ac8a249c68c858b.tar.lz
nixpkgs-7d11433876f37d30e8cbf0748ac8a249c68c858b.tar.xz
nixpkgs-7d11433876f37d30e8cbf0748ac8a249c68c858b.tar.zst
nixpkgs-7d11433876f37d30e8cbf0748ac8a249c68c858b.zip
botan: split dev
out size 28M -> 27M
dev output 1.6M
-rw-r--r--pkgs/development/libraries/botan/generic.nix4
-rw-r--r--pkgs/tools/security/softhsm/default.nix2
2 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/libraries/botan/generic.nix b/pkgs/development/libraries/botan/generic.nix
index 1c5126584c2..8c9c1a88a8b 100644
--- a/pkgs/development/libraries/botan/generic.nix
+++ b/pkgs/development/libraries/botan/generic.nix
@@ -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;
diff --git a/pkgs/tools/security/softhsm/default.nix b/pkgs/tools/security/softhsm/default.nix
index b218a3241f9..648a4bc6515 100644
--- a/pkgs/tools/security/softhsm/default.nix
+++ b/pkgs/tools/security/softhsm/default.nix
@@ -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"
     ];