2015-04-02 13:36:19 +00:00
|
|
|
{ stdenv, fetchgit, qt4, ecl, xorgserver, xkbcomp, xkeyboard_config }:
|
2010-09-17 19:52:50 +00:00
|
|
|
|
2015-04-02 13:36:19 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = src.rev;
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "eql-git";
|
2015-04-02 13:36:19 +00:00
|
|
|
src = fetchgit {
|
2012-12-13 11:53:24 +00:00
|
|
|
rev = "9097bf98446ee33c07bb155d800395775ce0d9b2";
|
2015-04-02 13:36:19 +00:00
|
|
|
url = "https://gitlab.com/eql/eql.git";
|
2016-06-02 11:26:44 +00:00
|
|
|
sha256 = "17h23qr7fyr9hvjgiq0yhacmjs43x06vh8978aq42ymcgipxdcww";
|
2010-09-17 19:52:50 +00:00
|
|
|
};
|
|
|
|
|
2015-04-02 13:36:19 +00:00
|
|
|
buildInputs = [ ecl qt4 xorgserver xkbcomp xkeyboard_config ];
|
2010-09-22 18:25:39 +00:00
|
|
|
|
2019-10-30 01:29:30 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-fPIC";
|
2010-09-17 19:52:50 +00:00
|
|
|
|
2015-04-02 13:36:19 +00:00
|
|
|
postPatch = ''
|
2010-09-17 19:52:50 +00:00
|
|
|
sed -re 's@[(]in-home "gui/.command-history"[)]@(concatenate '"'"'string (ext:getenv "HOME") "/.eql-gui-command-history")@' -i gui/gui.lisp
|
2020-10-22 10:43:37 +00:00
|
|
|
|
|
|
|
# cl_def_c_function was renamed to ecl_def_c_function in ECL 20.4.24.
|
|
|
|
find . -type f -exec sed -e 's/\scl_def_c_function(/ ecl_def_c_function(/' -i {} \;
|
2015-04-02 13:36:19 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
cd src
|
|
|
|
ecl -shell make-eql-lib.lisp
|
|
|
|
qmake eql_lib.pro
|
|
|
|
make
|
|
|
|
cd ..
|
2010-09-17 19:52:50 +00:00
|
|
|
|
2012-12-13 11:53:24 +00:00
|
|
|
cd src
|
2010-10-23 18:40:57 +00:00
|
|
|
qmake eql_exe.pro
|
2010-09-20 08:10:12 +00:00
|
|
|
make
|
2012-12-13 11:53:24 +00:00
|
|
|
cd ..
|
|
|
|
cd src
|
2015-04-02 13:36:19 +00:00
|
|
|
'';
|
2010-09-20 08:10:12 +00:00
|
|
|
|
2015-04-02 13:36:19 +00:00
|
|
|
installPhase = ''
|
2010-09-17 19:52:50 +00:00
|
|
|
cd ..
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin $out/lib/eql/ $out/include $out/include/gen $out/lib
|
2010-09-17 19:52:50 +00:00
|
|
|
cp -r . $out/lib/eql/build-dir
|
|
|
|
ln -s $out/lib/eql/build-dir/eql $out/bin
|
2010-09-20 08:10:12 +00:00
|
|
|
ln -s $out/lib/eql/build-dir/src/*.h $out/include
|
|
|
|
ln -s $out/lib/eql/build-dir/src/gen/*.h $out/include/gen
|
2010-10-23 18:40:57 +00:00
|
|
|
ln -s $out/lib/eql/build-dir/libeql*.so* $out/lib
|
2015-04-02 13:36:19 +00:00
|
|
|
'';
|
2012-12-13 11:53:24 +00:00
|
|
|
|
2015-04-02 13:36:19 +00:00
|
|
|
meta = with stdenv.lib; {
|
2010-09-17 19:52:50 +00:00
|
|
|
description = "Embedded Qt Lisp (ECL+Qt)";
|
2015-04-02 13:36:19 +00:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2015-11-25 22:04:57 +00:00
|
|
|
platforms = platforms.linux;
|
2015-04-02 13:36:19 +00:00
|
|
|
license = licenses.mit;
|
2010-09-17 19:52:50 +00:00
|
|
|
};
|
2015-04-02 13:36:19 +00:00
|
|
|
|
2010-09-17 19:52:50 +00:00
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://password-taxi.at/EQL";
|
|
|
|
method = "fetchgit";
|
2015-04-02 13:36:19 +00:00
|
|
|
rev = src.rev;
|
|
|
|
url = src.url;
|
|
|
|
hash = src.sha256;
|
2010-09-17 19:52:50 +00:00
|
|
|
};
|
|
|
|
};
|
2015-04-02 13:36:19 +00:00
|
|
|
}
|