linuxdoc-tools: init at 0.9.82
Heavily based on original work by xvuko Co-authored-by: xvuko <nix@vuko.pl>
This commit is contained in:
parent
a2c1f55586
commit
c3161d81bd
@ -842,6 +842,12 @@ in mkLicense lset) ({
|
|||||||
fullName = "SGI Free Software License B v2.0";
|
fullName = "SGI Free Software License B v2.0";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Gentoo seems to treat it as a license:
|
||||||
|
# https://gitweb.gentoo.org/repo/gentoo.git/tree/licenses/SGMLUG?id=7d999af4a47bf55e53e54713d98d145f935935c1
|
||||||
|
sgmlug = {
|
||||||
|
fullName = "SGML UG SGML Parser Materials license";
|
||||||
|
};
|
||||||
|
|
||||||
sleepycat = {
|
sleepycat = {
|
||||||
spdxId = "Sleepycat";
|
spdxId = "Sleepycat";
|
||||||
fullName = "Sleepycat License";
|
fullName = "Sleepycat License";
|
||||||
|
62
pkgs/tools/text/sgml/linuxdoc-tools/default.nix
Normal file
62
pkgs/tools/text/sgml/linuxdoc-tools/default.nix
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
{ stdenv, lib, makeWrapper, fetchFromGitLab, openjade, gnumake, perl, flex
|
||||||
|
, gnused, coreutils, which, opensp, groff, texlive, texinfo, withLatex ? false
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "linuxdoc-tools";
|
||||||
|
version = "0.9.82";
|
||||||
|
|
||||||
|
src = fetchFromGitLab {
|
||||||
|
owner = "agmartin";
|
||||||
|
repo = "linuxdoc-tools";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "17v9ilh79av4n94vk4m52aq57ykb9myffxd2qr8kb8b3xnq5d36z";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = [ "out" "man" "doc" ];
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
("--enable-docs=txt info lyx html rtf"
|
||||||
|
+ lib.optionalString withLatex " pdf")
|
||||||
|
];
|
||||||
|
|
||||||
|
LEX = "flex";
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram $out/bin/linuxdoc \
|
||||||
|
--prefix PATH : "${lib.makeBinPath [ groff opensp ]}:$out/bin" \
|
||||||
|
--prefix PERL5LIB : "$out/share/linuxdoc-tools/"
|
||||||
|
'';
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
|
||||||
|
installCheckPhase = ''
|
||||||
|
pushd doc/example
|
||||||
|
substituteInPlace Makefile \
|
||||||
|
--replace "COMMAND=linuxdoc" "COMMAND=$out/bin/linuxdoc" \
|
||||||
|
${lib.optionalString (!withLatex) "--replace '.tex .dvi .ps .pdf' ''"}
|
||||||
|
make
|
||||||
|
popd
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ flex which makeWrapper ];
|
||||||
|
|
||||||
|
buildInputs = [ opensp groff texinfo perl gnused coreutils ]
|
||||||
|
++ lib.optionals withLatex [ texlive.combined.scheme-medium ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Toolset for processing LinuxDoc DTD SGML files";
|
||||||
|
longDescription = ''
|
||||||
|
A collection of text formatters which understands a LinuxDoc DTD SGML
|
||||||
|
source file. Each formatter (or "back-end") renders the source file into
|
||||||
|
a variety of output formats, including HTML, TeX, DVI, PostScript, plain
|
||||||
|
text, and groff source in manual-page format. The linuxdoc suite is
|
||||||
|
provided for backward compatibility, because there are still many useful
|
||||||
|
documents written in LinuxDoc DTD sgml source.
|
||||||
|
'';
|
||||||
|
homepage = "https://gitlab.com/agmartin/linuxdoc-tools";
|
||||||
|
license = with licenses; [ gpl3Plus mit sgmlug ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ p-h ];
|
||||||
|
};
|
||||||
|
}
|
@ -4928,6 +4928,8 @@ with pkgs;
|
|||||||
|
|
||||||
linuxptp = callPackage ../os-specific/linux/linuxptp { };
|
linuxptp = callPackage ../os-specific/linux/linuxptp { };
|
||||||
|
|
||||||
|
linuxdoc-tools = callPackage ../tools/text/sgml/linuxdoc-tools { };
|
||||||
|
|
||||||
lisgd = callPackage ../tools/inputmethods/lisgd { };
|
lisgd = callPackage ../tools/inputmethods/lisgd { };
|
||||||
|
|
||||||
lite = callPackage ../applications/editors/lite { };
|
lite = callPackage ../applications/editors/lite { };
|
||||||
|
Loading…
Reference in New Issue
Block a user