8 stdenv.mkDerivation rec {
14 url = "mirror://sourceforge/project/nuweb/${pname}-${version}.tar.gz";
15 sha256 = "sha256-JVqPYkYPXBT0xLNWuW4DV6N6ZlKuBYQGT46frhnpU64=";
18 buildInputs = [ texliveMedium ];
21 sed -ie 's|nuweb -r|./nuweb -r|' Makefile
24 # Workaround build failure on -fno-common toolchains like upstream
25 # gcc-10. Otherwise build fails as:
26 # ld: global.o:/build/nuweb-1.62/global.h:91: multiple definition of
27 # `current_sector'; main.o:/build/nuweb-1.62/global.h:91: first defined here
28 env.NIX_CFLAGS_COMPILE = "-fcommon";
32 make nuweb.pdf nuwebdoc.pdf all
35 install -d $out/bin $out/share/man/man1 $out/share/doc/${pname}-${version} $out/share/emacs/site-lisp
37 cp nuweb.el $out/share/emacs/site-lisp
38 gzip -c nuweb.1 > $out/share/man/man1/nuweb.1.gz
39 cp htdocs/index.html nuweb.w nuweb.pdf nuwebdoc.pdf README $out/share/doc/${pname}-${version}
43 description = "Simple literate programming tool";
44 mainProgram = "nuweb";
45 homepage = "https://nuweb.sourceforge.net";
46 license = licenses.free;
47 maintainers = [ maintainers.AndersonTorres ];
48 platforms = platforms.unix;
51 # TODO: nuweb.el Emacs integration