1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

botan: split into a separate bin, doc, man output

This commit is contained in:
nikstur 2024-09-04 16:02:46 +02:00
parent 4c465c0155
commit c8a92b6001

View file

@ -3,6 +3,7 @@
stdenv,
fetchurl,
python3,
docutils,
bzip2,
zlib,
darwin,
@ -25,8 +26,11 @@ let
strictDeps = true;
outputs = [
"bin"
"out"
"dev"
"doc"
"man"
];
src = fetchurl {
@ -36,7 +40,11 @@ let
inherit patches;
nativeBuildInputs = [ python3 ];
nativeBuildInputs = [
python3
docutils
];
buildInputs =
[
bzip2
@ -59,10 +67,14 @@ let
botanConfigureFlags =
[
"--prefix=${placeholder "out"}"
"--bindir=${placeholder "bin"}/bin"
"--docdir=${placeholder "doc"}/share/doc"
"--mandir=${placeholder "man"}/share/man"
"--no-install-python-module"
"--build-targets=${lib.concatStringsSep "," finalAttrs.buildTargets}"
"--with-bzip2"
"--with-zlib"
"--with-rst2man"
]
++ lib.optionals stdenv.cc.isClang [
"--cc=clang"