mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
commit
dc5eb16de7
40
pkgs/applications/graphics/krop/default.nix
Normal file
40
pkgs/applications/graphics/krop/default.nix
Normal file
@ -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;
|
||||||
|
};
|
||||||
|
}
|
@ -3341,6 +3341,8 @@ with pkgs;
|
|||||||
|
|
||||||
kronometer = libsForQt5.callPackage ../tools/misc/kronometer { };
|
kronometer = libsForQt5.callPackage ../tools/misc/kronometer { };
|
||||||
|
|
||||||
|
krop = callPackage ../applications/graphics/krop { };
|
||||||
|
|
||||||
elisa = libsForQt5.callPackage ../applications/audio/elisa { };
|
elisa = libsForQt5.callPackage ../applications/audio/elisa { };
|
||||||
|
|
||||||
kdiff3 = libsForQt5.callPackage ../tools/text/kdiff3 { };
|
kdiff3 = libsForQt5.callPackage ../tools/text/kdiff3 { };
|
||||||
|
Loading…
Reference in New Issue
Block a user