nixpkgs/pkgs/applications/office/pdfmixtool/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.1 KiB
Nix
Raw Normal View History

2021-08-02 20:39:07 +02:00
{ lib
, mkDerivation
, fetchFromGitLab
, fetchpatch
2021-08-02 20:39:07 +02:00
, cmake
, pkg-config
, qtbase
, qttools
, qpdf
, podofo
, imagemagick
2021-08-02 20:39:07 +02:00
}:
mkDerivation rec {
pname = "pdfmixtool";
2023-03-09 16:59:43 +01:00
version = "1.1.1";
2021-08-02 20:39:07 +02:00
src = fetchFromGitLab {
owner = "scarpetta";
repo = pname;
rev = "v${version}";
2023-03-09 16:59:43 +01:00
hash = "sha256-fgtRKUG6J/CM6cXUTHWAPemqL8loWZT3wZmGdRHldq8=";
2021-08-02 20:39:07 +02:00
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
imagemagick
2021-08-02 20:39:07 +02:00
qtbase
qttools
qpdf
podofo
];
patches = [
2023-03-09 16:59:43 +01:00
# fix incompatibility with qpdf11.3.0 usage of c++17 - delete this patch when we reach pdfmixtool version > v1.1.1
(fetchpatch {
2023-03-09 16:59:43 +01:00
url = "https://gitlab.com/scarpetta/pdfmixtool/-/commit/bd5f78c3a4d977d9b0c74302ce2521c737189b43.diff";
hash = "sha256-h2g5toFqgEEnObd2TYQms1a1WFTgN7VsIHyy0Uyq4/I=";
})
];
2021-08-02 20:39:07 +02:00
meta = with lib; {
description = "An application to split, merge, rotate and mix PDF files";
homepage = "https://gitlab.com/scarpetta/pdfmixtool";
license = licenses.gpl3Only;
maintainers = with maintainers; [ onny ];
};
}