nixpkgs-suyu/pkgs/development/compilers/eql/default.nix

61 lines
1.5 KiB
Nix
Raw Normal View History

2015-04-02 15:36:19 +02:00
{ stdenv, fetchgit, qt4, ecl, xorgserver, xkbcomp, xkeyboard_config }:
2015-04-02 15:36:19 +02:00
stdenv.mkDerivation rec {
version = src.rev;
name = "eql-git-${version}";
src = fetchgit {
2012-12-13 12:53:24 +01:00
rev = "9097bf98446ee33c07bb155d800395775ce0d9b2";
2015-04-02 15:36:19 +02:00
url = "https://gitlab.com/eql/eql.git";
sha256 = "17h23qr7fyr9hvjgiq0yhacmjs43x06vh8978aq42ymcgipxdcww";
};
2015-04-02 15:36:19 +02:00
buildInputs = [ ecl qt4 xorgserver xkbcomp xkeyboard_config ];
2016-04-17 01:44:28 +02:00
NIX_CFLAGS_COMPILE = [ "-fPIC" ];
2015-04-02 15:36:19 +02:00
postPatch = ''
sed -re 's@[(]in-home "gui/.command-history"[)]@(concatenate '"'"'string (ext:getenv "HOME") "/.eql-gui-command-history")@' -i gui/gui.lisp
2015-04-02 15:36:19 +02:00
'';
buildPhase = ''
cd src
ecl -shell make-eql-lib.lisp
qmake eql_lib.pro
make
cd ..
2012-12-13 12:53:24 +01:00
cd src
qmake eql_exe.pro
make
2012-12-13 12:53:24 +01:00
cd ..
cd src
2015-04-02 15:36:19 +02:00
'';
2015-04-02 15:36:19 +02:00
installPhase = ''
cd ..
mkdir -p $out/bin $out/lib/eql/ $out/include $out/include/gen $out/lib
cp -r . $out/lib/eql/build-dir
ln -s $out/lib/eql/build-dir/eql $out/bin
ln -s $out/lib/eql/build-dir/src/*.h $out/include
ln -s $out/lib/eql/build-dir/src/gen/*.h $out/include/gen
ln -s $out/lib/eql/build-dir/libeql*.so* $out/lib
2015-04-02 15:36:19 +02:00
'';
2012-12-13 12:53:24 +01:00
2015-04-02 15:36:19 +02:00
meta = with stdenv.lib; {
description = "Embedded Qt Lisp (ECL+Qt)";
2015-04-02 15:36:19 +02:00
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
2015-04-02 15:36:19 +02:00
license = licenses.mit;
};
2015-04-02 15:36:19 +02:00
passthru = {
updateInfo = {
downloadPage = "http://password-taxi.at/EQL";
method = "fetchgit";
2015-04-02 15:36:19 +02:00
rev = src.rev;
url = src.url;
hash = src.sha256;
};
};
2015-04-02 15:36:19 +02:00
}