Commit dc4209a0 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

f3d: add withManual option, by default disabled on darwin

should fix darwin
parent 67d4cea6
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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"
  ];