2014-05-17 22:21:17 +02:00
|
|
|
{stdenv, fetchurl, yacc, flex, readline, ncurses, gnused}:
|
2009-01-24 22:01:27 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "cdecl-2.5";
|
|
|
|
src = fetchurl {
|
2014-05-17 22:21:17 +02:00
|
|
|
url = "http://cdecl.org/files/cdecl-blocks-2.5.tar.gz";
|
|
|
|
md5 = "c1927e146975b1c7524cbaf07a7c10f8";
|
2009-01-24 22:01:27 +01:00
|
|
|
};
|
|
|
|
|
2014-05-17 22:21:17 +02:00
|
|
|
patches = [ ./cdecl-2.5-lex.patch ];
|
|
|
|
preBuild = ''
|
|
|
|
${gnused}/bin/sed 's/getline/cdecl_getline/g' -i cdecl.c;
|
|
|
|
makeFlagsArray=(CFLAGS="-DBSD -DUSE_READLINE -std=gnu89" LIBS=-lreadline);
|
|
|
|
makeFlags="$makeFlags PREFIX=$out BINDIR=$out/bin MANDIR=$out/man1 CATDIR=$out/cat1";
|
|
|
|
mkdir -p $out/bin;
|
|
|
|
'';
|
2009-04-08 12:09:14 +02:00
|
|
|
buildInputs = [yacc flex readline ncurses];
|
2009-01-24 22:01:27 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Translator English -- C/C++ declarations";
|
2012-03-07 23:20:23 +01:00
|
|
|
license = "Public Domain";
|
2014-05-19 05:51:08 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric joelteon];
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2009-01-24 22:01:27 +01:00
|
|
|
};
|
|
|
|
}
|