dotnet: improve language coverage of passthru.tests for dotnet sdks (#370789)
[NixPkgs.git] / pkgs / desktops / lumina / lumina-pdf / default.nix
blob04117d7f4cce4b9d4927292bd22a3615731fa519
2   lib,
3   mkDerivation,
4   fetchFromGitHub,
5   qmake,
6   qtbase,
7   qttools,
8   poppler,
9 }:
11 mkDerivation rec {
12   pname = "lumina-pdf";
13   version = "1.6.0";
15   src = fetchFromGitHub {
16     owner = "lumina-desktop";
17     repo = pname;
18     rev = "v${version}";
19     sha256 = "08caj4nashp79fbvj94rabn0iaa1hymifqmb782x03nb2vkn38r6";
20   };
22   sourceRoot = "${src.name}/src-qt5";
24   nativeBuildInputs = [
25     qmake
26     qttools
27   ];
29   buildInputs = [
30     qtbase
31     poppler
32   ];
34   postPatch = ''
35     sed -i '1i\#include <memory>\' Renderer-poppler.cpp
36   '';
38   qmakeFlags = [
39     "CONFIG+=WITH_I18N"
40     "LRELEASE=${lib.getDev qttools}/bin/lrelease"
41   ];
43   enableParallelBuilding = false;
45   meta = with lib; {
46     description = "PDF viewer for the Lumina Desktop";
47     mainProgram = "lumina-pdf";
48     homepage = "https://github.com/lumina-desktop/lumina-pdf";
49     license = licenses.bsd3;
50     platforms = platforms.unix;
51     maintainers = teams.lumina.members;
52   };