cweb: init at 22p

This commit is contained in:
Rahul Gopinath 2016-07-03 11:14:46 -07:00
parent f3da2e5bac
commit 5dade2d296
2 changed files with 51 additions and 0 deletions

@ -0,0 +1,49 @@
{ stdenv, fetchFromGitHub, fetchurl, tie }:
stdenv.mkDerivation rec {
name = "cwebbin-${version}";
version = "22p";
src = fetchFromGitHub {
owner = "ascherer";
repo = "cwebbin";
rev = name;
sha256 = "0zf93016hm9i74i2v384rwzcw16y3hg5vc2mibzkx1rzvqa50yfr";
};
cweb = fetchurl {
url = https://www.ctan.org/tex-archive/web/c_cpp/cweb/cweb.tar.gz;
sha256 = "1hdzxfzaibnjxjzgp6d2zay8nsarnfy9hfq55hz1bxzzl23n35aj";
};
buildInputs = [ tie ];
makeFlags = [
"MACROSDIR=$(out)/share/texmf/tex/generic/cweb"
"CWEBINPUTS=$(out)/lib/cweb"
"DESTDIR=$(out)/bin"
"MANDIR=$(out)/share/man/man1"
"EMACSDIR=$(out)/share/emacs/site-lisp"
"CP=cp"
"RM=rm"
"PDFTEX=echo"
];
buildPhase = ''
zcat ${cweb} | tar -xvpf -
make -f Makefile.unix boot $makeFlags
make -f Makefile.unix cautiously $makeFlags
'';
installPhase = ''
mkdir -p $out/share/man/man1 $out/share/texmf/tex/generic $out/share/emacs $out/lib
make -f Makefile.unix install $makeFlags
'';
meta = with stdenv.lib; {
inherit (src.meta) homepage;
description = "Literate Programming in C/C++";
platforms = with platforms; unix;
maintainers = with maintainers; [ vrthra ];
};
}

@ -1220,6 +1220,8 @@ in
cutter = callPackage ../tools/networking/cutter { };
cwebbin = callPackage ../development/tools/misc/cwebbin { };
cvs_fast_export = callPackage ../applications/version-management/cvs-fast-export { };
dadadodo = callPackage ../tools/text/dadadodo { };