Open rkoe opened 2 years ago
I can reproduce. adding chardet to propagatedBuildInput fixed it. I tried adding the manpage but couldn't test it yet. I am a bit busy this WE so feel free to submit a PR otherwise, I will submit monday
diff --git a/pkgs/tools/text/rpl/default.nix b/pkgs/tools/text/rpl/default.nix
index 1677e9c3f96..7788a8e395e 100644
--- a/pkgs/tools/text/rpl/default.nix
+++ b/pkgs/tools/text/rpl/default.nix
@@ -1,4 +1,4 @@
-{ lib, fetchFromGitHub, python3Packages }:
+{ lib, fetchFromGitHub, installShellFiles, python3Packages, help2man }:
python3Packages.buildPythonApplication rec {
pname = "rpl";
@@ -19,14 +19,30 @@ python3Packages.buildPythonApplication rec {
./remove-argparse-manpage.diff # quickfix for ImportError: No module named build_manpages.build_manpages
];
- buildInputs = [
+ postPatch = "patchShebangs ./rpl";
+ nativeBuildInputs = [
+ help2man installShellFiles
+ ];
+
+ propagatedBuildInputs = [
#python3Packages.argparse-manpage # TODO
python3Packages.chardet
];
- installPhase = ''
- mkdir -p $out/bin
- mv rpl $out/bin
+ # postBuild = "make rpl.1";
+
+ # installPhase = ''
+ # mkdir -p $out/bin
+ # mv rpl $out/bin
+
+ # '';
+
+ postInstall = ''
+ echo "PWD: $PWD"
+ ls -l
+ python ./rpl --help
+ make rpl.1
+ installManPage rpl.1
'';
meta = with lib; {
I can reproduce as well.
any of you wanting to take over maintainership ?
Describe the bug
The rpl-package broke recently:
Steps To Reproduce
Steps to reproduce the behavior:
Notify maintainers
@teto
Metadata