pdf-quench: no manual shebang patch

This commit is contained in:
Jörg Thalheim 2018-04-30 16:01:07 +01:00
parent 0e5f82b847
commit ccb7e5488e

View File

@ -12,17 +12,17 @@ pythonPackages.buildPythonApplication rec {
};
nativeBuildInputs = [ wrapGAppsHook ];
buildInputs = with pkgs; [ gtk3 gobjectIntrospection goocanvas2 (poppler.override { introspectionSupport = true; }) ];
buildInputs = with pkgs; [
gtk3
gobjectIntrospection
goocanvas2
(poppler.override { introspectionSupport = true; })
];
propagatedBuildInputs = with pythonPackages; [ pygobject3 pypdf2 ];
dontBuild = true;
format = "other";
doCheck = false;
postPatch = ''
substituteInPlace src/pdf_quench.py \
--replace /usr/bin/python "${pythonPackages.python}/bin/python"
'';
installPhase = ''
install -D -T -m 755 src/pdf_quench.py $out/bin/pdf-quench
'';