diff --git a/pkgs/development/tools/documentation/doxygen/default.nix b/pkgs/development/tools/documentation/doxygen/default.nix index 1b128a51d0b..29f4fcfd4ae 100644 --- a/pkgs/development/tools/documentation/doxygen/default.nix +++ b/pkgs/development/tools/documentation/doxygen/default.nix @@ -1,4 +1,15 @@ -{ lib, stdenv, cmake, fetchFromGitHub, python3, flex, bison, qt5, CoreServices, libiconv }: +{ lib +, stdenv +, cmake +, fetchFromGitHub +, python3 +, flex +, bison +, qt5 +, CoreServices +, libiconv +, withSqlite ? true, sqlite +}: stdenv.mkDerivation rec { pname = "doxygen"; @@ -19,16 +30,23 @@ stdenv.mkDerivation rec { ]; buildInputs = [ libiconv ] + ++ lib.optionals withSqlite [ sqlite ] ++ lib.optionals (qt5 != null) (with qt5; [ qtbase wrapQtAppsHook ]) ++ lib.optionals stdenv.isDarwin [ CoreServices ]; - cmakeFlags = - [ "-DICONV_INCLUDE_DIR=${libiconv}/include" ] ++ - lib.optional (qt5 != null) "-Dbuild_wizard=YES"; + cmakeFlags = [ "-DICONV_INCLUDE_DIR=${libiconv}/include" ] + ++ lib.optional withSqlite "-Duse_sqlite3=ON" + ++ lib.optional (qt5 != null) "-Dbuild_wizard=YES"; env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-mmacosx-version-min=10.9"; + # put examples in an output so people/tools can test against them + outputs = [ "out" "examples" ]; + postInstall = '' + cp -r ../examples $examples + ''; + meta = { license = lib.licenses.gpl2Plus; homepage = "https://www.doxygen.nl/"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index eca3232c7d7..3cb145b9db2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18123,9 +18123,9 @@ with pkgs; dot2tex = with python3.pkgs; toPythonApplication dot2tex; - doxygen = callPackage ../development/tools/documentation/doxygen { + doxygen = darwin.apple_sdk_11_0.callPackage ../development/tools/documentation/doxygen { qt5 = null; - inherit (darwin.apple_sdk.frameworks) CoreServices; + inherit (darwin.apple_sdk_11_0.frameworks) CoreServices; }; doxygen_gui = lowPrio (doxygen.override { inherit qt5; });