robodoc: fix build on darwin, adopt (#457949)
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
|
fetchpatch,
|
||||||
autoreconfHook,
|
autoreconfHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@@ -12,20 +13,28 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "gumpu";
|
owner = "gumpu";
|
||||||
repo = "ROBODoc";
|
repo = "ROBODoc";
|
||||||
rev = "v${finalAttrs.version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-l3prSdaGhOvXmZfCPbsZJNocO7y20zJjLQpajRTJOqE=";
|
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 ''
|
postConfigure = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||||
substituteInPlace Docs/makefile.am \
|
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 ];
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
homepage = "https://github.com/gumpu/ROBODoc";
|
homepage = "https://github.com/gumpu/ROBODoc";
|
||||||
description = "Documentation Extraction Tool";
|
description = "Documentation Extraction Tool";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
@@ -47,8 +56,9 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
Shell Scripts, Assembler, COBOL, Occam, Postscript, Forth, Tcl/Tk, C++,
|
Shell Scripts, Assembler, COBOL, Occam, Postscript, Forth, Tcl/Tk, C++,
|
||||||
Java -- basically any program in which you can use remarks/comments.
|
Java -- basically any program in which you can use remarks/comments.
|
||||||
'';
|
'';
|
||||||
license = with licenses; gpl3Plus;
|
license = lib.licenses.gpl3Plus;
|
||||||
maintainers = [ ];
|
maintainers = with lib.maintainers; [ iedame ];
|
||||||
platforms = platforms.all;
|
platforms = lib.platforms.all;
|
||||||
|
mainProgram = "robodoc";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user