diff options
author | OPNA2608 | 2023-06-13 12:52:19 +0200 |
---|---|---|
committer | OPNA2608 | 2023-06-13 12:52:19 +0200 |
commit | 5e8556cbc2249b2cfc86ee8328d21636a45c8a9d (patch) | |
tree | c4bd17c12cb72a8423717c395d5cf0f2bc1034b8 /pkgs/development/libraries/qdjango | |
parent | 6ff5f398b75089eac83d2c0b5b75240240735fc7 (diff) |
qdjango: init at unstable-2018-03-07
Diffstat (limited to 'pkgs/development/libraries/qdjango')
-rw-r--r-- | pkgs/development/libraries/qdjango/default.nix | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/development/libraries/qdjango/default.nix b/pkgs/development/libraries/qdjango/default.nix new file mode 100644 index 000000000000..5793a62969b0 --- /dev/null +++ b/pkgs/development/libraries/qdjango/default.nix @@ -0,0 +1,60 @@ +{ stdenv +, lib +, fetchFromGitHub +, testers +, doxygen +, qmake +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "qdjango"; + version = "unstable-2018-03-07"; + + src = fetchFromGitHub { + owner = "jlaine"; + repo = "qdjango"; + rev = "bda4755ece9d173a67b880e498027fcdc51598a8"; + hash = "sha256-5MfRfsIlv73VMvKMBCLviXFovyGH0On5ukLIEy7zwkk="; + }; + + outputs = [ "out" "dev" "doc" ]; + + postPatch = '' + # HTML docs depend on regular docs + substituteInPlace qdjango.pro \ + --replace 'dist.depends = docs' 'htmldocs.depends = docs' + ''; + + qmakeFlags = [ + # Uses Qt testing infrastructure via QMake CONFIG testcase, + # defaults to installing all testcase targets under Qt prefix + # https://github.com/qt/qtbase/blob/29400a683f96867133b28299c0d0bd6bcf40df35/mkspecs/features/testcase.prf#L110-L120 + "CONFIG+=no_testcase_installs" + + # Qmake-generated pkg-config files default to Qt prefix + "QMAKE_PKGCONFIG_PREFIX=${placeholder "out"}" + ]; + + nativeBuildInputs = [ + doxygen + qmake + ]; + + dontWrapQtApps = true; + + doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; + + passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; + + meta = with lib; { + description = "Qt-based C++ web framework"; + homepage = "https://github.com/jlaine/qdjango"; + license = licenses.lgpl21Plus; + maintainers = with maintainers; [ OPNA2608 ]; + platforms = platforms.all; + pkgConfigModules = [ + "qdjango-db" + "qdjango-http" + ]; + }; +}) |