2021-01-22 12:25:31 +01:00
|
|
|
{ lib, stdenv
|
2018-04-13 18:12:53 +02:00
|
|
|
, fetchurl
|
|
|
|
, symlinkJoin
|
|
|
|
, makeWrapper
|
|
|
|
, tcl
|
|
|
|
, fontconfig
|
|
|
|
, tk
|
|
|
|
, ncurses
|
|
|
|
, xorg
|
|
|
|
, file
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
# eli derives the location of the include folder from the location of the lib folder
|
|
|
|
tk_combined = symlinkJoin {
|
|
|
|
name = "tk_combined";
|
|
|
|
paths = [
|
|
|
|
tk
|
|
|
|
tk.dev
|
|
|
|
];
|
|
|
|
};
|
|
|
|
curses_combined = symlinkJoin {
|
|
|
|
name = "curses_combined";
|
|
|
|
paths = [
|
|
|
|
ncurses
|
|
|
|
ncurses.dev
|
|
|
|
];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "eli";
|
2018-04-13 18:12:53 +02:00
|
|
|
version = "4.8.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://sourceforge/project/eli-project/Eli/Eli%20${version}/${pname}-${version}.tar.bz2";
|
2018-04-13 18:12:53 +02:00
|
|
|
sha256="1vran8583hbwrr5dciji4zkhz3f88w4mn8n9sdpr6zw0plpf1whj";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
|
|
|
fontconfig
|
|
|
|
] ++ (with xorg; [
|
|
|
|
libX11.dev
|
|
|
|
libXt.dev
|
|
|
|
libXaw.dev
|
|
|
|
libXext.dev
|
|
|
|
]);
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
file
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
# skip interactive browser check
|
2019-10-27 14:03:25 +01:00
|
|
|
buildFlags = [ "nobrowsers" ];
|
2018-04-13 18:12:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
preConfigure=''
|
|
|
|
configureFlagsArray=(
|
|
|
|
--with-tcltk="${tcl} ${tk_combined}"
|
|
|
|
--with-curses="${curses_combined}"
|
|
|
|
)
|
|
|
|
export ODIN_LOCALIPC=1
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/eli" \
|
|
|
|
--set ODIN_LOCALIPC 1
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Test if eli starts
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
|
|
export HOME="$TMP/home"
|
|
|
|
mkdir -p "$HOME"
|
|
|
|
$out/bin/eli "!ls"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Translator Construction Made Easy";
|
|
|
|
longDescription = ''
|
|
|
|
Eli is a programming environment that supports all phases of translator
|
|
|
|
construction with extensive libraries implementing common tasks, yet handling
|
|
|
|
arbitrary special cases. Output is the C subset of C++.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://eli-project.sourceforge.net/";
|
2021-01-22 12:25:31 +01:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = with lib.maintainers; [ timokau ];
|
|
|
|
platforms = lib.platforms.linux;
|
2018-04-13 18:12:53 +02:00
|
|
|
};
|
|
|
|
}
|