1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 00:54:46 +00:00
nixpkgs/pkgs/development/tools/cdecl/default.nix

26 lines
862 B
Nix
Raw Normal View History

2014-05-17 21:21:17 +01:00
{stdenv, fetchurl, yacc, flex, readline, ncurses, gnused}:
stdenv.mkDerivation {
name = "cdecl-2.5";
src = fetchurl {
url = "https://www.cdecl.org/files/cdecl-blocks-2.5.tar.gz";
2016-10-26 15:59:37 +01:00
sha256 = "1b7k0ra30hh8mg8fqv0f0yzkaac6lfg6n376drgbpxg4wwml1rly";
};
2014-05-17 21:21:17 +01: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 CC=$CC";
2014-05-17 21:21:17 +01:00
mkdir -p $out/bin;
'';
buildInputs = [yacc flex readline ncurses];
meta = {
description = "Translator English -- C/C++ declarations";
license = stdenv.lib.licenses.publicDomain;
maintainers = with stdenv.lib.maintainers; [joelteon];
2014-05-19 04:51:08 +01:00
platforms = stdenv.lib.platforms.unix;
};
}