Program 'rst2man rst2man.py' not found or not executable

I’ve got an overlay that is trying to build sfwbar-git but I get the rst2man not found error during build, I installed docutils but I still get the error.
Thanks

1 Like

I think it would help if you provide the URL for the overlay.
It may be the case of missing dependency or configuration to ignore build step.

This is the overlay

(self: super:
{
  sfwbar = super.sfwbar.overrideAttrs (oldAttrs: rec {
      src = super.fetchFromGitHub {
         owner = "LBCrion";
         repo = "sfwbar";
         rev = "573aeb29d9b915c6da2531fcb584cd78934dee51";
         sha256 = "sha256-sCfsL3Rvj83g7vk1MhsBsEajQBevq86X1Iw8PDy5gYs=";
    };
  });
})

];

And the url is GitHub - LBCrion/sfwbar: S* Floating Window Bar

This:

You’re only updating src in your build with newer version.
But newer version requires rst2man to build man pages:
Options:

  1. Try add docutils as nativeBuildInputs,
  sfwbar = super.sfwbar.overrideAttrs (oldAttrs: rec {
      # https://github.com/NixOS/nixpkgs/blob/752c634c09ceb50c45e751f8791cb45cb3d46c9e/pkgs/applications/misc/sfwbar/default.nix#L38
      # https://ryantm.github.io/nixpkgs/stdenv/stdenv/#ssec-stdenv-dependencies-overview
      # https://search.nixos.org/packages?channel=24.05&show=docutils&from=0&size=50&sort=relevance&type=packages&query=docutils
      nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ pkgs.docutils ];
      src = super.fetchFromGitHub {
  1. Try disable man page generation
  sfwbar = super.sfwbar.overrideAttrs (oldAttrs: rec {
      # https://github.com/LBCrion/sfwbar/blob/573aeb29d9b915c6da2531fcb584cd78934dee51/meson_options.txt#L11C9-L11C19
      # https://ryantm.github.io/nixpkgs/hooks/meson/#mesonbuildtype
      # https://github.com/NixOS/nixpkgs/blob/fa3885c77ac541f414975d5fac016ffa84552c8e/lib/strings.nix#L859
      mesonFlags = (oldAttrs.mesonFlags or []) ++ [ "-Dbuild-docs=disabled" ]       
      src = super.fetchFromGitHub {

Thanks! adding

nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ pkgs.docutils ];

did the job, thanks.

1 Like