2010-06-22 21:49:06 +02:00
|
|
|
{stdenv, fetchurl, gawk}:
|
2006-02-02 18:07:07 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2010-06-22 21:49:06 +02:00
|
|
|
name = "noweb-2.11b";
|
2006-02-02 18:07:07 +01:00
|
|
|
src = fetchurl {
|
2010-06-22 21:49:06 +02:00
|
|
|
urls = [ "http://ftp.de.debian.org/debian/pool/main/n/noweb/noweb_2.11b.orig.tar.gz"
|
|
|
|
"ftp://www.eecs.harvard.edu/pub/nr/noweb.tgz"
|
|
|
|
];
|
|
|
|
sha256 = "10hdd6mrk26kyh4bnng4ah5h1pnanhsrhqa7qwqy6dyv3rng44y9";
|
2006-02-02 18:07:07 +01:00
|
|
|
};
|
2010-06-22 21:49:06 +02:00
|
|
|
preBuild = ''
|
2014-06-30 14:56:10 +02:00
|
|
|
mkdir -p $out/lib/noweb
|
2010-06-22 21:49:06 +02:00
|
|
|
cd src
|
2014-03-12 11:54:50 +01:00
|
|
|
makeFlags="BIN=$out/bin LIB=$out/lib/noweb MAN=$out/share/man TEXINPUTS=$out/share/texmf/tex/latex"
|
2010-06-22 21:49:06 +02:00
|
|
|
'';
|
|
|
|
preInstall=''mkdir -p $out/share/texmf/tex/latex'';
|
|
|
|
postInstall= ''
|
|
|
|
substituteInPlace $out/bin/cpif --replace "PATH=/bin:/usr/bin" ""
|
2014-03-12 11:54:50 +01:00
|
|
|
for f in $out/bin/{noweb,nountangle,noroots,noroff,noindex} \
|
|
|
|
$out/lib/noweb/{toroff,btdefn,totex,pipedoc,noidx,unmarkup,toascii,tohtml,emptydefn}; do
|
2010-06-22 21:49:06 +02:00
|
|
|
substituteInPlace $f --replace "nawk" "${gawk}/bin/awk"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
patches = [ ./no-FAQ.patch ];
|
2006-02-02 18:07:07 +01:00
|
|
|
}
|