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";
|
2012-12-13 11:53:24 +00:00
|
|
|
rev = "9097bf98446ee33c07bb155d800395775ce0d9b2";
|
2010-09-17 20:52:50 +01:00
|
|
|
url = "git://gitorious.org/eql/eql";
|
2012-12-13 11:53:24 +00:00
|
|
|
hash = "1fp88xmmk1sa0iqxahfiv818bp2sbf66vqrd4xq9jb731ybdvsb8";
|
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;
|
|
|
|
|
2012-12-13 11:53:24 +00:00
|
|
|
phaseNames = ["setVars" "fixPaths" "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"];
|
|
|
|
|
|
|
|
doQMake = a.fullDepEntry (''
|
2012-12-13 11:53:24 +00:00
|
|
|
cd src
|
2010-10-23 19:40:57 +01:00
|
|
|
qmake eql_exe.pro
|
2010-09-20 09:10:12 +01:00
|
|
|
make
|
2012-12-13 11:53:24 +00:00
|
|
|
cd ..
|
|
|
|
cd src
|
|
|
|
'') ["addInputs" "doUnpack" "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
|
2012-12-13 11:53:24 +00:00
|
|
|
'') ["minInit"];
|
|
|
|
|
|
|
|
buildEQLLib = a.fullDepEntry (''
|
|
|
|
cd src
|
|
|
|
ecl -shell make-eql-lib.lisp
|
|
|
|
qmake eql_lib.pro
|
|
|
|
make
|
|
|
|
cd ..
|
|
|
|
'') ["doUnpack" "addInputs"];
|
|
|
|
|
2010-09-17 20:52:50 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
|