diff options
author | Aleksana <me@aleksana.moe> | 2024-05-25 13:15:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-25 13:15:18 +0800 |
commit | 295b63fd4d58e62f83705d78ad66ca8b018052de (patch) | |
tree | c2b8a505634f43f5a3da0cca3acaa9c501873226 /pkgs/applications/graphics | |
parent | f2c4b2f1eb7f2cf39442c31bccaf3be9ec541b24 (diff) | |
parent | dc4209a00a5e37407039e42e84e675c482ed72ad (diff) |
Merge pull request #313938 from pbsds/fix-f3d-1716455665
f3d: unbreak on darwin
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r-- | pkgs/applications/graphics/f3d/default.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/applications/graphics/f3d/default.nix b/pkgs/applications/graphics/f3d/default.nix index 3b45ca987f1a2..dd893ba9a976e 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,8 +28,11 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake + ] ++ lib.optionals withManual [ + # manpage help2man gzip + ] ++ lib.optionals stdenv.hostPlatform.isElf [ # https://github.com/f3d-app/f3d/pull/1217 autoPatchelfHook ]; @@ -41,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" ]; |