3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/misc/cwebbin/default.nix

51 lines
1.2 KiB
Nix
Raw Normal View History

2016-07-03 19:14:46 +01:00
{ stdenv, fetchFromGitHub, fetchurl, tie }:
stdenv.mkDerivation rec {
name = "cwebbin-${version}";
version = "22p";
src = fetchFromGitHub {
owner = "ascherer";
repo = "cwebbin";
2017-04-09 21:47:55 +01:00
rev = "2016-05-20-22p";
2016-07-03 19:14:46 +01:00
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/"
2016-07-03 19:14:46 +01:00
"MANDIR=$(out)/share/man/man1"
"EMACSDIR=$(out)/share/emacs/site-lisp"
"CP=cp"
"RM=rm"
"PDFTEX=echo"
2017-04-08 04:53:29 +01:00
"CC=c++"
2016-07-03 19:14:46 +01:00
];
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 ];
};
}