2021-08-05 21:33:18 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitLab
|
2022-09-30 11:47:45 +00:00
|
|
|
, fetchpatch
|
2021-08-05 21:33:18 +00:00
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, qtbase
|
|
|
|
, qttools
|
|
|
|
, qpdf
|
|
|
|
, podofo
|
2022-09-30 11:47:45 +00:00
|
|
|
, imagemagick
|
2021-08-05 21:33:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "pdfmixtool";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "1.1";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "scarpetta";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-09-30 11:47:45 +00:00
|
|
|
hash = "sha256-S8hhWZ6nHyIWPwsfl+o9XnljLD3aE/vthCLuWEbm5nc=";
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-09-30 11:47:45 +00:00
|
|
|
imagemagick
|
2021-08-05 21:33:18 +00:00
|
|
|
qtbase
|
|
|
|
qttools
|
|
|
|
qpdf
|
|
|
|
podofo
|
|
|
|
];
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
patches = [
|
|
|
|
# fix incompatibility with qpdf11
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.com/scarpetta/pdfmixtool/-/commit/81f7e96f6e68dfeba3cd4e00d8553dfdd2d7f2fa.diff";
|
|
|
|
hash = "sha256-uBchYjUIqL7dJR7U/TSxhSGu1qY742cFUIv0XKU6L2g=";
|
|
|
|
})
|
|
|
|
|
|
|
|
];
|
|
|
|
|
2021-08-05 21:33:18 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|