nixpkgs/pkgs/applications/misc/pdf-quench/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

38 lines
994 B
Nix

{ lib, fetchFromGitHub, pkgs, python3, wrapGAppsHook3, gobject-introspection }:
python3.pkgs.buildPythonApplication {
pname = "pdf-quench";
version = "1.0.5";
src = fetchFromGitHub {
owner = "linuxerwang";
repo = "pdf-quench";
rev = "b72b3970b371026f9a7ebe6003581e8a63af98f6";
sha256 = "1rp9rlwr6rarcsxygv5x2c5psgwl6r69k0lsgribgyyla9cf2m7n";
};
nativeBuildInputs = [ wrapGAppsHook3 gobject-introspection ];
buildInputs = with pkgs; [
gtk3
goocanvas2
poppler_gi
];
propagatedBuildInputs = with python3.pkgs; [ pygobject3 pypdf2 ];
format = "other";
doCheck = false;
installPhase = ''
install -D -T -m 755 src/pdf_quench.py $out/bin/pdf-quench
'';
meta = with lib; {
homepage = "https://github.com/linuxerwang/pdf-quench";
description = "Visual tool for cropping pdf files";
mainProgram = "pdf-quench";
platforms = platforms.linux;
license = licenses.gpl2;
maintainers = with maintainers; [ flokli ];
};
}