mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
d4593d4daf
Failing Hydra build: https://hydra.nixos.org/build/155183850
55 lines
1023 B
Nix
55 lines
1023 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, gettext
|
|
, intltool
|
|
, pkg-config
|
|
, wrapGAppsHook
|
|
, gtkmm3
|
|
, libuuid
|
|
, poppler
|
|
, qpdf
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pdfslicer";
|
|
version = "1.8.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "junrrein";
|
|
repo = "pdfslicer";
|
|
rev = "v${version}";
|
|
fetchSubmodules = true;
|
|
sha256 = "0sja0ddd9c8wjjpzk2ag8q1lxpj09adgmhd7wnsylincqnj2jyls";
|
|
};
|
|
|
|
postPatch = ''
|
|
# Don't build tests, vendored catch doesn't build with latest glibc.
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace "add_subdirectory (tests)" ""
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
gettext
|
|
intltool
|
|
pkg-config
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
gtkmm3
|
|
libuuid
|
|
poppler
|
|
qpdf
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A simple application to extract, merge, rotate and reorder pages of PDF documents";
|
|
homepage = "https://junrrein.github.io/pdfslicer/";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|