From d2d5d5b22efe38b2d8b9595dcb95479863979305 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 13 Oct 2022 05:17:52 +0200 Subject: [PATCH] kea: build documentation and manpages Very easily due to the comforts of the sphinx hook <3 --- pkgs/tools/networking/kea/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkgs/tools/networking/kea/default.nix b/pkgs/tools/networking/kea/default.nix index 1ad67e45f292..13540b7e6247 100644 --- a/pkgs/tools/networking/kea/default.nix +++ b/pkgs/tools/networking/kea/default.nix @@ -35,6 +35,12 @@ stdenv.mkDerivation rec { substituteInPlace ./src/bin/keactrl/Makefile.am --replace '@sysconfdir@' "$out/etc" ''; + outputs = [ + "out" + "doc" + "man" + ]; + configureFlags = [ "--enable-perfdhcp" "--enable-shell" @@ -47,7 +53,16 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ autoreconfHook pkg-config + ] ++ (with python3.pkgs; [ + sphinxHook + sphinx-rtd-theme + ]); + + sphinxBuilders = [ + "html" + "man" ]; + sphinxRoot = "doc/sphinx"; buildInputs = [ boost