mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-06 05:43:17 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
61 lines
1.4 KiB
Nix
61 lines
1.4 KiB
Nix
{ lib
|
|
, mkDerivation
|
|
, fetchFromGitLab
|
|
, fetchpatch
|
|
, fetchpatch2
|
|
, cmake
|
|
, pkg-config
|
|
, qtbase
|
|
, qttools
|
|
, qpdf
|
|
, podofo
|
|
, imagemagick
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "pdfmixtool";
|
|
version = "1.1.1";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "scarpetta";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-fgtRKUG6J/CM6cXUTHWAPemqL8loWZT3wZmGdRHldq8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
imagemagick
|
|
qtbase
|
|
qttools
|
|
qpdf
|
|
podofo
|
|
];
|
|
|
|
patches = [
|
|
# fix incompatibility with qpdf11.3.0 usage of c++17 - delete this patch when we reach pdfmixtool version > v1.1.1
|
|
(fetchpatch {
|
|
url = "https://gitlab.com/scarpetta/pdfmixtool/-/commit/bd5f78c3a4d977d9b0c74302ce2521c737189b43.diff";
|
|
hash = "sha256-h2g5toFqgEEnObd2TYQms1a1WFTgN7VsIHyy0Uyq4/I=";
|
|
})
|
|
# https://gitlab.com/scarpetta/pdfmixtool/-/merge_requests/14
|
|
(fetchpatch2 {
|
|
url = "https://gitlab.com/scarpetta/pdfmixtool/-/commit/268291317ccd1805dc1c801ff88641ba06c6a7f0.patch";
|
|
hash = "sha256-56bDoFtE+IOQHcV9xPfyrgYYFvTfB0QiLIfRl91irb0=";
|
|
})
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Application to split, merge, rotate and mix PDF files";
|
|
mainProgram = "pdfmixtool";
|
|
homepage = "https://gitlab.com/scarpetta/pdfmixtool";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ onny ];
|
|
};
|
|
}
|
|
|