From e5970be7e321f05c34dacf62353c26e27f93955d Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Tue, 23 Jan 2024 02:08:41 +0100 Subject: [PATCH] f3d: build manpage --- pkgs/applications/graphics/f3d/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/graphics/f3d/default.nix b/pkgs/applications/graphics/f3d/default.nix index 7cfd8030189e..38b829659ba8 100644 --- a/pkgs/applications/graphics/f3d/default.nix +++ b/pkgs/applications/graphics/f3d/default.nix @@ -2,6 +2,8 @@ , stdenv , fetchFromGitHub , cmake +, help2man +, gzip , vtk_9 , autoPatchelfHook , libX11 @@ -14,6 +16,8 @@ stdenv.mkDerivation rec { pname = "f3d"; version = "2.2.1"; + outputs = [ "out" "man" ]; + src = fetchFromGitHub { owner = "f3d-app"; repo = "f3d"; @@ -23,18 +27,22 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake + help2man + gzip # https://github.com/f3d-app/f3d/pull/1217 autoPatchelfHook ]; buildInputs = [ vtk_9 ] ++ lib.optionals stdenv.isDarwin [ Cocoa OpenGL ]; - # conflict between VTK and Nixpkgs; - # see https://github.com/NixOS/nixpkgs/issues/89167 cmakeFlags = [ + # conflict between VTK and Nixpkgs; + # see https://github.com/NixOS/nixpkgs/issues/89167 "-DCMAKE_INSTALL_LIBDIR=lib" "-DCMAKE_INSTALL_INCLUDEDIR=include" "-DCMAKE_INSTALL_BINDIR=bin" + + "-DF3D_LINUX_GENERATE_MAN=ON" ]; meta = with lib; {