From dc4209a00a5e37407039e42e84e675c482ed72ad Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Thu, 23 May 2024 23:05:43 +0200 Subject: [PATCH] f3d: add withManual option, by default disabled on darwin should fix darwin --- pkgs/applications/graphics/f3d/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/graphics/f3d/default.nix b/pkgs/applications/graphics/f3d/default.nix index 5edbd078cd01..dd893ba9a976 100644 --- a/pkgs/applications/graphics/f3d/default.nix +++ b/pkgs/applications/graphics/f3d/default.nix @@ -10,13 +10,14 @@ , libGL , Cocoa , OpenGL +, withManual ? !stdenv.isDarwin }: stdenv.mkDerivation rec { pname = "f3d"; version = "2.4.0"; - outputs = [ "out" "man" ]; + outputs = [ "out" ] ++ lib.optionals withManual [ "man" ]; src = fetchFromGitHub { owner = "f3d-app"; @@ -27,6 +28,8 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake + ] ++ lib.optionals withManual [ + # manpage help2man gzip ] ++ lib.optionals stdenv.hostPlatform.isElf [ @@ -42,7 +45,7 @@ stdenv.mkDerivation rec { "-DCMAKE_INSTALL_LIBDIR=lib" "-DCMAKE_INSTALL_INCLUDEDIR=include" "-DCMAKE_INSTALL_BINDIR=bin" - + ] ++ lib.optionals withManual [ "-DF3D_LINUX_GENERATE_MAN=ON" ];