From e4d31bd6c5fb691f7cbac93ea6179668349288a6 Mon Sep 17 00:00:00 2001 From: Rafael Ieda Date: Sun, 2 Nov 2025 21:36:09 -0300 Subject: [PATCH 1/2] robodoc: fix build on darwin --- pkgs/by-name/ro/robodoc/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/ro/robodoc/package.nix b/pkgs/by-name/ro/robodoc/package.nix index 4a8bb485a6f6..bfb50edaaf68 100644 --- a/pkgs/by-name/ro/robodoc/package.nix +++ b/pkgs/by-name/ro/robodoc/package.nix @@ -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 =' From d7c400085f3656d078c4e16a15322904b030daa1 Mon Sep 17 00:00:00 2001 From: Rafael Ieda Date: Sun, 2 Nov 2025 21:44:20 -0300 Subject: [PATCH 2/2] robodoc: add maintainer iedame --- pkgs/by-name/ro/robodoc/package.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/ro/robodoc/package.nix b/pkgs/by-name/ro/robodoc/package.nix index bfb50edaaf68..69e6ddcc7deb 100644 --- a/pkgs/by-name/ro/robodoc/package.nix +++ b/pkgs/by-name/ro/robodoc/package.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchFromGitHub { owner = "gumpu"; repo = "ROBODoc"; - rev = "v${finalAttrs.version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-l3prSdaGhOvXmZfCPbsZJNocO7y20zJjLQpajRTJOqE="; }; @@ -27,14 +27,14 @@ stdenv.mkDerivation (finalAttrs: { postConfigure = lib.optionalString stdenv.hostPlatform.isDarwin '' substituteInPlace Docs/makefile.am \ - --replace 'man1_MANS = robodoc.1 robohdrs.1' 'man1_MANS =' + --replace-fail 'man1_MANS = robodoc.1 robohdrs.1' 'man1_MANS =' ''; nativeBuildInputs = [ autoreconfHook ]; hardeningDisable = [ "format" ]; - meta = with lib; { + meta = { homepage = "https://github.com/gumpu/ROBODoc"; description = "Documentation Extraction Tool"; longDescription = '' @@ -56,8 +56,9 @@ stdenv.mkDerivation (finalAttrs: { Shell Scripts, Assembler, COBOL, Occam, Postscript, Forth, Tcl/Tk, C++, Java -- basically any program in which you can use remarks/comments. ''; - license = with licenses; gpl3Plus; - maintainers = [ ]; - platforms = platforms.all; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ iedame ]; + platforms = lib.platforms.all; + mainProgram = "robodoc"; }; })