commit
ae8dfea880
|
@ -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/";
|
||||
|
|
|
@ -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; });
|
||||
|
|
Loading…
Reference in a new issue