diff options
author | Michiel Leenaars <ml.software@leenaa.rs> | 2018-06-24 22:38:47 +0200 |
---|---|---|
committer | Michiel Leenaars <ml.software@leenaa.rs> | 2018-06-25 17:07:24 +0200 |
commit | 6056c0672180ff6237f626e990a6db6e17d76f9b (patch) | |
tree | 7d36bba71d016ec3ab5bc8ae55f83b5118757ab4 | |
parent | 75a006c32e76c147cd85969b28a173beacf788ec (diff) |
krop: init -> 0.5.0
-rw-r--r-- | pkgs/applications/graphics/krop/default.nix | 40 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/krop/default.nix b/pkgs/applications/graphics/krop/default.nix new file mode 100644 index 000000000000..2858086e0d64 --- /dev/null +++ b/pkgs/applications/graphics/krop/default.nix @@ -0,0 +1,40 @@ +{ stdenv, fetchFromGitHub, python3Packages, libsForQt5, ghostscript }: + +python3Packages.buildPythonApplication rec { + pname = "krop"; + version = "0.5.0"; + + src = fetchFromGitHub { + owner = "arminstraub"; + repo = pname; + rev = "v${version}"; + sha256 = "0y8z9xr10wbzmi1dg1zpcsf3ihnxrnvlaf72821x3390s3qsnydf"; + }; + + propagatedBuildInputs = with python3Packages; [ + pyqt5 + pypdf2 + poppler-qt5 + libsForQt5.poppler + ghostscript + ]; + + # Disable checks because of interference with older Qt versions // xcb + doCheck = false; + + meta = { + homepage = http://arminstraub.com/software/krop; + description = "Graphical tool to crop the pages of PDF files"; + longDescription = '' + Krop is a tool that allows you to optimise your PDF files, and remove + sections of the page you do not want. A unique feature of krop, at least to my + knowledge, is its ability to automatically split pages into subpages to fit the + limited screensize of devices such as eReaders. This is particularly useful, if + your eReader does not support convenient scrolling. Krop also has a command line + interface. + ''; + license = stdenv.lib.licenses.gpl3Plus; + maintainers = with stdenv.lib.maintainers; [ leenaars ]; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bdf2d83fe3fc..321775d441e8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3327,6 +3327,8 @@ with pkgs; kronometer = libsForQt5.callPackage ../tools/misc/kronometer { }; + krop = callPackage ../applications/graphics/krop { }; + elisa = libsForQt5.callPackage ../applications/audio/elisa { }; kdiff3 = libsForQt5.callPackage ../tools/text/kdiff3 { }; |