Merge pull request #39379 from flokli/pdf-quench
pdf-quench: init at 1.0.5
This commit is contained in:
commit
c696ac9221
36
pkgs/applications/misc/pdf-quench/default.nix
Normal file
36
pkgs/applications/misc/pdf-quench/default.nix
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, pkgs, pythonPackages, wrapGAppsHook}:
|
||||||
|
|
||||||
|
pythonPackages.buildPythonApplication rec {
|
||||||
|
name = "pdf-quench-${version}";
|
||||||
|
version = "1.0.5";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "linuxerwang";
|
||||||
|
repo = "pdf-quench";
|
||||||
|
rev = "b72b3970b371026f9a7ebe6003581e8a63af98f6";
|
||||||
|
sha256 = "1rp9rlwr6rarcsxygv5x2c5psgwl6r69k0lsgribgyyla9cf2m7n";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ wrapGAppsHook ];
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
gtk3
|
||||||
|
gobjectIntrospection
|
||||||
|
goocanvas2
|
||||||
|
poppler_gi
|
||||||
|
];
|
||||||
|
propagatedBuildInputs = with pythonPackages; [ pygobject3 pypdf2 ];
|
||||||
|
|
||||||
|
format = "other";
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
install -D -T -m 755 src/pdf_quench.py $out/bin/pdf-quench
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = https://github.com/linuxerwang/pdf-quench;
|
||||||
|
description = "A visual tool for cropping pdf files";
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ flokli ];
|
||||||
|
};
|
||||||
|
}
|
@ -13,11 +13,13 @@ in stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig gettext gtk-doc python2 ];
|
nativeBuildInputs = [ pkgconfig gettext gtk-doc python2 ];
|
||||||
buildInputs = [ gtk3 cairo glib ];
|
buildInputs = [ gtk3 cairo glib gobjectIntrospection ];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--disable-python"
|
"--disable-python"
|
||||||
];
|
];
|
||||||
|
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_GIRDIR = "$(dev)/share/gir-1.0";
|
||||||
|
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_TYPELIBDIR = "$(out)/lib/girepository-1.0";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Canvas widget for GTK+ based on the the Cairo 2D library";
|
description = "Canvas widget for GTK+ based on the the Cairo 2D library";
|
||||||
|
@ -4286,6 +4286,8 @@ with pkgs;
|
|||||||
|
|
||||||
pdfmod = callPackage ../applications/misc/pdfmod { };
|
pdfmod = callPackage ../applications/misc/pdfmod { };
|
||||||
|
|
||||||
|
pdf-quench = callPackage ../applications/misc/pdf-quench { };
|
||||||
|
|
||||||
jbig2enc = callPackage ../tools/graphics/jbig2enc { };
|
jbig2enc = callPackage ../tools/graphics/jbig2enc { };
|
||||||
|
|
||||||
pdfread = callPackage ../tools/graphics/pdfread {
|
pdfread = callPackage ../tools/graphics/pdfread {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user