mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
f9fdf2d402
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
64 lines
1.7 KiB
Nix
64 lines
1.7 KiB
Nix
{ lib, stdenv, fetchgit, qt4, ecl, xorgserver, xkbcomp, xkeyboard_config }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "unstable-2012-12-10";
|
|
pname = "eql";
|
|
src = fetchgit {
|
|
rev = "9097bf98446ee33c07bb155d800395775ce0d9b2";
|
|
url = "https://gitlab.com/eql/eql.git";
|
|
sha256 = "17h23qr7fyr9hvjgiq0yhacmjs43x06vh8978aq42ymcgipxdcww";
|
|
};
|
|
|
|
buildInputs = [ ecl qt4 xorgserver xkbcomp xkeyboard_config ];
|
|
|
|
env.NIX_CFLAGS_COMPILE = "-fPIC";
|
|
|
|
postPatch = ''
|
|
sed -re 's@[(]in-home "gui/.command-history"[)]@(concatenate '"'"'string (ext:getenv "HOME") "/.eql-gui-command-history")@' -i gui/gui.lisp
|
|
|
|
# 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 {} \;
|
|
'';
|
|
|
|
buildPhase = ''
|
|
cd src
|
|
ecl -shell make-eql-lib.lisp
|
|
qmake eql_lib.pro
|
|
make
|
|
cd ..
|
|
|
|
cd src
|
|
qmake eql_exe.pro
|
|
make
|
|
cd ..
|
|
cd src
|
|
'';
|
|
|
|
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
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Embedded Qt Lisp (ECL+Qt)";
|
|
maintainers = with maintainers; [ raskin ];
|
|
platforms = platforms.linux;
|
|
license = licenses.mit;
|
|
};
|
|
|
|
passthru = {
|
|
updateInfo = {
|
|
downloadPage = "http://password-taxi.at/EQL";
|
|
method = "fetchgit";
|
|
rev = src.rev;
|
|
url = src.url;
|
|
hash = src.sha256;
|
|
};
|
|
};
|
|
}
|