robodoc: fix build on darwin

This commit is contained in:
Rafael Ieda
2025-11-02 21:36:09 -03:00
parent ec7a96ff8c
commit e4d31bd6c5
+9
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
autoreconfHook,
}:
@@ -16,6 +17,14 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-l3prSdaGhOvXmZfCPbsZJNocO7y20zJjLQpajRTJOqE=";
};
patches = [
(fetchpatch {
name = "troff_generator-fix";
url = "https://github.com/gumpu/ROBODoc/commit/0f8b35c42523810415bec70bb2200d2ecb41c82f.patch?index=full";
hash = "sha256-Pbuc1gHrOeHbR4QT/dZ8wP+vqYQlilayjCGKOJP5wvk=";
})
];
postConfigure = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace Docs/makefile.am \
--replace 'man1_MANS = robodoc.1 robohdrs.1' 'man1_MANS ='