2010-09-17 20:52:50 +01:00
|
|
|
x@{builderDefsPackage
|
2010-10-23 19:40:57 +01:00
|
|
|
, fetchgit, qt4, ecl, xorgserver
|
|
|
|
, xkbcomp, xkeyboard_config
|
2010-09-17 20:52:50 +01:00
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
|
|
["fetchgit"];
|
|
|
|
|
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
2010-09-17 23:08:50 +01:00
|
|
|
sourceInfo = rec {
|
2010-09-17 20:52:50 +01:00
|
|
|
method = "fetchgit";
|
2010-10-23 16:34:58 +01:00
|
|
|
rev = "14f62c94f952104d27d920ea662c8a61b370abe8";
|
2010-09-17 20:52:50 +01:00
|
|
|
url = "git://gitorious.org/eql/eql";
|
2010-10-23 16:34:58 +01:00
|
|
|
hash = "1ca31f0ad8cbc45d2fdf7b1e4059b1e612523c043f4688d7147c7e16fa5ba9ca";
|
2010-09-17 21:23:16 +01:00
|
|
|
version = rev;
|
|
|
|
name = "eql-git-${version}";
|
2010-09-17 20:52:50 +01:00
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
2010-09-22 10:52:53 +01:00
|
|
|
srcDrv = a.fetchgit {
|
2010-09-17 20:52:50 +01:00
|
|
|
url = sourceInfo.url;
|
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
rev = sourceInfo.rev;
|
2010-09-22 10:52:53 +01:00
|
|
|
};
|
|
|
|
src = srcDrv + "/";
|
2010-09-17 20:52:50 +01:00
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
|
2010-10-23 19:40:57 +01:00
|
|
|
phaseNames = ["setVars" "fixPaths" "firstMetaTypeId" "buildEQLLib" "doQMake" "doMake" "doDeploy"];
|
2010-09-22 19:25:39 +01:00
|
|
|
|
|
|
|
setVars = a.fullDepEntry (''
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -fPIC"
|
|
|
|
'') [];
|
2010-09-17 20:52:50 +01: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 19:40:57 +01: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 &
|
2010-12-17 10:59:09 +00:00
|
|
|
sleep 10;
|
2010-10-23 19:40:57 +01:00
|
|
|
DISPLAY=:2 ./first_metatype_id
|
|
|
|
'') ["doUnpack" "addInputs"];
|
|
|
|
|
2010-09-17 20:52:50 +01:00
|
|
|
buildEQLLib = a.fullDepEntry (''
|
|
|
|
ecl -shell make-eql-lib.lisp
|
2010-10-23 19:40:57 +01:00
|
|
|
qmake eql_lib.pro
|
|
|
|
make
|
|
|
|
'') ["doUnpack" "addInputs" "firstMetaTypeId"];
|
2010-09-17 20:52:50 +01:00
|
|
|
|
|
|
|
doQMake = a.fullDepEntry (''
|
2010-10-23 19:40:57 +01:00
|
|
|
qmake eql_exe.pro
|
2010-09-20 09:10:12 +01:00
|
|
|
make
|
2010-10-23 19:40:57 +01:00
|
|
|
'') ["addInputs" "firstMetaTypeId" "buildEQLLib"];
|
2010-09-20 09:10:12 +01:00
|
|
|
|
2010-09-17 20:52:50 +01:00
|
|
|
doDeploy = a.fullDepEntry (''
|
|
|
|
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 20:52:50 +01:00
|
|
|
cp -r . $out/lib/eql/build-dir
|
|
|
|
ln -s $out/lib/eql/build-dir/eql $out/bin
|
2010-09-20 09:10:12 +01: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 19:40:57 +01:00
|
|
|
ln -s $out/lib/eql/build-dir/libeql*.so* $out/lib
|
2010-09-17 20:52:50 +01: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 10:52:53 +01:00
|
|
|
inherit srcDrv;
|
2010-09-17 20:52:50 +01:00
|
|
|
};
|
|
|
|
}) x
|
|
|
|
|