nixpkgs/pkgs/development/tools/literate-programming/nuweb/default.nix

39 lines
1.0 KiB
Nix
Raw Normal View History

2015-10-12 05:46:49 +01:00
{stdenv, fetchurl, tex}:
stdenv.mkDerivation rec{
pname = "nuweb";
2015-10-12 05:46:49 +01:00
version = "1.58";
src = fetchurl {
url = "mirror://sourceforge/project/nuweb/${pname}-${version}.tar.gz";
2015-10-12 05:46:49 +01:00
sha256 = "0q51i3miy15fv4njjp82yws01qfjxvqx5ly3g3vh8z3h7iq9p47y";
};
buildInputs = [ tex ];
patchPhase = ''
sed -ie 's|nuweb -r|./nuweb -r|' Makefile
'';
buildPhase = ''
make nuweb
make nuweb.pdf nuwebdoc.pdf all
'';
installPhase = ''
install -d $out/bin $out/share/man/man1 $out/share/doc/${pname}-${version} $out/share/emacs/site-lisp
2015-10-12 05:46:49 +01:00
cp nuweb $out/bin
cp nuweb.el $out/share/emacs/site-lisp
gzip -c nuweb.1 > $out/share/man/man1/nuweb.1.gz
cp htdocs/index.html nuweb.w nuweb.pdf nuwebdoc.pdf README $out/share/doc/${pname}-${version}
2015-10-12 05:46:49 +01:00
'';
meta = with stdenv.lib; {
description = "A simple literate programming tool";
homepage = http://nuweb.sourceforge.net;
license = licenses.free;
maintainers = [ maintainers.AndersonTorres ];
platforms = platforms.linux;
2015-10-12 05:46:49 +01:00
};
}
# TODO: nuweb.el Emacs integration