biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / office / pdfmixtool / default.nix
blob2aeca54c1e96623fac5baaf0785d83e8363de43d
1 { lib
2 , mkDerivation
3 , fetchFromGitLab
4 , fetchpatch
5 , fetchpatch2
6 , cmake
7 , pkg-config
8 , qtbase
9 , qttools
10 , qpdf
11 , podofo
12 , imagemagick
15 mkDerivation rec {
16   pname = "pdfmixtool";
17   version = "1.1.1";
19   src = fetchFromGitLab {
20     owner = "scarpetta";
21     repo = pname;
22     rev = "v${version}";
23     hash = "sha256-fgtRKUG6J/CM6cXUTHWAPemqL8loWZT3wZmGdRHldq8=";
24   };
26   nativeBuildInputs = [
27     cmake
28     pkg-config
29   ];
31   buildInputs = [
32     imagemagick
33     qtbase
34     qttools
35     qpdf
36     podofo
37   ];
39   patches = [
40     # fix incompatibility with qpdf11.3.0 usage of c++17 - delete this patch when we reach pdfmixtool version > v1.1.1
41     (fetchpatch {
42       url = "https://gitlab.com/scarpetta/pdfmixtool/-/commit/bd5f78c3a4d977d9b0c74302ce2521c737189b43.diff";
43       hash = "sha256-h2g5toFqgEEnObd2TYQms1a1WFTgN7VsIHyy0Uyq4/I=";
44     })
45     # https://gitlab.com/scarpetta/pdfmixtool/-/merge_requests/14
46     (fetchpatch2 {
47       url = "https://gitlab.com/scarpetta/pdfmixtool/-/commit/268291317ccd1805dc1c801ff88641ba06c6a7f0.patch";
48       hash = "sha256-56bDoFtE+IOQHcV9xPfyrgYYFvTfB0QiLIfRl91irb0=";
49     })
50   ];
52   meta = with lib; {
53     description = "An application to split, merge, rotate and mix PDF files";
54     mainProgram = "pdfmixtool";
55     homepage = "https://gitlab.com/scarpetta/pdfmixtool";
56     license = licenses.gpl3Only;
57     maintainers = with maintainers; [ onny ];
58   };