2010-09-17 21:52:50 +02:00
|
|
|
x@{builderDefsPackage
|
2010-10-23 20:40:57 +02:00
|
|
|
, fetchgit, qt4, ecl, xorgserver
|
|
|
|
, xkbcomp, xkeyboard_config
|
2010-09-17 21:52:50 +02:00
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
|
|
["fetchgit"];
|
|
|
|
|
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
2010-09-18 00:08:50 +02:00
|
|
|
sourceInfo = rec {
|
2010-09-17 21:52:50 +02:00
|
|
|
method = "fetchgit";
|
2010-10-23 17:34:58 +02:00
|
|
|
rev = "14f62c94f952104d27d920ea662c8a61b370abe8";
|
2010-09-17 21:52:50 +02:00
|
|
|
url = "git://gitorious.org/eql/eql";
|
2010-10-23 17:34:58 +02:00
|
|
|
hash = "1ca31f0ad8cbc45d2fdf7b1e4059b1e612523c043f4688d7147c7e16fa5ba9ca";
|
2010-09-17 22:23:16 +02:00
|
|
|
version = rev;
|
|
|
|
name = "eql-git-${version}";
|
2010-09-17 21:52:50 +02:00
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
2010-09-22 11:52:53 +02:00
|
|
|
srcDrv = a.fetchgit {
|
2010-09-17 21:52:50 +02:00
|
|
|
url = sourceInfo.url;
|
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
rev = sourceInfo.rev;
|
2010-09-22 11:52:53 +02:00
|
|
|
};
|
|
|
|
src = srcDrv + "/";
|
2010-09-17 21:52:50 +02:00
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
|
2010-10-23 20:40:57 +02:00
|
|
|
phaseNames = ["setVars" "fixPaths" "firstMetaTypeId" "buildEQLLib" "doQMake" "doMake" "doDeploy"];
|
2010-09-22 20:25:39 +02:00
|
|
|
|
|
|
|
setVars = a.fullDepEntry (''
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -fPIC"
|
|
|
|
'') [];
|
2010-09-17 21:52:50 +02:00
|
|
|
|
|
|
|
fixPaths = a.fullDepEntry (''
|
|
|
|
sed -re 's@[(]in-home "gui/.command-history"[)]@(concatenate '"'"'string (ext:getenv "HOME") "/.eql-gui-command-history")@' -i gui/gui.lisp
|
|
|
|
'') ["minInit" "doUnpack"];
|
|
|
|
|
2010-10-23 20:40:57 +02:00
|
|
|
firstMetaTypeId = a.fullDepEntry (''
|
|
|
|
cd src
|
|
|
|
qmake first_metatype_id.pro
|
|
|
|
make
|
|
|
|
TMP=.
|
|
|
|
TMPDIR=.
|
|
|
|
XKB_BINDIR="${xkbcomp}/bin" Xvfb -once -reset -terminate :2 -xkbdir ${xkeyboard_config}/etc/X11/xkb &
|
|
|
|
DISPLAY=:2 ./first_metatype_id
|
|
|
|
'') ["doUnpack" "addInputs"];
|
|
|
|
|
2010-09-17 21:52:50 +02:00
|
|
|
buildEQLLib = a.fullDepEntry (''
|
|
|
|
ecl -shell make-eql-lib.lisp
|
2010-10-23 20:40:57 +02:00
|
|
|
qmake eql_lib.pro
|
|
|
|
make
|
|
|
|
'') ["doUnpack" "addInputs" "firstMetaTypeId"];
|
2010-09-17 21:52:50 +02:00
|
|
|
|
|
|
|
doQMake = a.fullDepEntry (''
|
2010-10-23 20:40:57 +02:00
|
|
|
qmake eql_exe.pro
|
2010-09-20 10:10:12 +02:00
|
|
|
make
|
2010-10-23 20:40:57 +02:00
|
|
|
'') ["addInputs" "firstMetaTypeId" "buildEQLLib"];
|
2010-09-20 10:10:12 +02:00
|
|
|
|
2010-09-17 21:52:50 +02:00
|
|
|
doDeploy = a.fullDepEntry (''
|
|
|
|
cd ..
|
2010-09-20 10:10:12 +02:00
|
|
|
ensureDir $out/bin $out/lib/eql/ $out/include $out/include/gen $out/lib
|
2010-09-17 21:52:50 +02:00
|
|
|
cp -r . $out/lib/eql/build-dir
|
|
|
|
ln -s $out/lib/eql/build-dir/eql $out/bin
|
2010-09-20 10:10:12 +02: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 20:40:57 +02:00
|
|
|
ln -s $out/lib/eql/build-dir/libeql*.so* $out/lib
|
2010-09-17 21:52:50 +02:00
|
|
|
'') ["minInit" "defEnsureDir"];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Embedded Qt Lisp (ECL+Qt)";
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
linux;
|
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://password-taxi.at/EQL";
|
|
|
|
method = "fetchgit";
|
|
|
|
rev = "370b7968fd73d5babc81e35913a37111a788487f";
|
|
|
|
url = "git://gitorious.org/eql/eql";
|
|
|
|
hash = "2370e111d86330d178f3ec95e8fed13607e51fed8859c6e95840df2a35381636";
|
|
|
|
};
|
2010-09-22 11:52:53 +02:00
|
|
|
inherit srcDrv;
|
2010-09-17 21:52:50 +02:00
|
|
|
};
|
|
|
|
}) x
|
|
|
|
|