about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorPol Dellaiera <pol.dellaiera@protonmail.com>2024-05-06 18:22:34 +0200
committerGitHub <noreply@github.com>2024-05-06 18:22:34 +0200
commite577daf8ba32782c5ef85b5635733902bbf85e53 (patch)
tree8916c50eab324b30f417c86663e91c4c3ffc95b7 /pkgs/development
parentba454fe3735034026fe05a3375b685434231d946 (diff)
parentc5f0dbd9dc75efa28d01ba9f1b99a648a907eef1 (diff)
Merge pull request #309438 from pyrox0/rst2pdf-build-fix
rst2pdf: Fix postInstall build
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/rst2pdf/default.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/rst2pdf/default.nix b/pkgs/development/python-modules/rst2pdf/default.nix
index f40da3a301f77..956767735cb88 100644
--- a/pkgs/development/python-modules/rst2pdf/default.nix
+++ b/pkgs/development/python-modules/rst2pdf/default.nix
@@ -1,6 +1,7 @@
 { lib
 , buildPythonPackage
 , fetchPypi
+, installShellFiles
 , setuptools
 , setuptools-scm
 , wheel
@@ -31,6 +32,7 @@ buildPythonPackage rec {
   outputs = [ "out" "man" ];
 
   nativeBuildInputs = [
+    installShellFiles
     setuptools
     setuptools-scm
     wheel
@@ -62,8 +64,8 @@ buildPythonPackage rec {
   doCheck = false;
 
   postInstall = ''
-    mkdir -p $man/share/man/man1/
-    ${docutils}/bin/rst2man.py doc/rst2pdf.rst $man/share/man/man1/rst2pdf.1
+    ${lib.getExe' docutils "rst2man"} doc/rst2pdf.rst rst2pdf.1
+    installManPage rst2pdf.1
   '';
 
   meta = with lib; {
@@ -72,6 +74,6 @@ buildPythonPackage rec {
     homepage = "https://rst2pdf.org/";
     changelog = "https://github.com/rst2pdf/rst2pdf/blob/${version}/CHANGES.rst";
     license = licenses.mit;
-    maintainers = with maintainers; [ ];
+    maintainers = with maintainers; [ pyrox0 ];
   };
 }