1 { lib, fetchFromGitHub, python3Packages, libsForQt5, ghostscript, qt5}:
3 python3Packages.buildPythonApplication rec {
7 src = fetchFromGitHub {
11 sha256 = "1ygzc7vlwszqmsd3v1dsqp1dpsn6inx7g8gck63alvf88dbn8m3s";
14 propagatedBuildInputs = with python3Packages; [
25 nativeBuildInputs = [ qt5.wrapQtAppsHook ];
27 "\${qtWrapperArgs[@]}"
31 install -m666 -Dt $out/share/applications krop.desktop
34 # Disable checks because of interference with older Qt versions // xcb
38 homepage = "http://arminstraub.com/software/krop";
39 description = "Graphical tool to crop the pages of PDF files";
42 Krop is a tool that allows you to optimise your PDF files, and remove
43 sections of the page you do not want. A unique feature of krop, at least to my
44 knowledge, is its ability to automatically split pages into subpages to fit the
45 limited screensize of devices such as eReaders. This is particularly useful, if
46 your eReader does not support convenient scrolling. Krop also has a command line
49 license = lib.licenses.gpl3Plus;
50 maintainers = with lib.maintainers; [ leenaars ];
51 platforms = lib.platforms.linux;