mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 12:59:04 +02:00
Allow building EQL applications
svn path=/nixpkgs/trunk/; revision=23869
This commit is contained in:
parent
5e32f98f5c
commit
c77f29daed
|
@ -28,7 +28,7 @@ rec {
|
||||||
inherit (sourceInfo) name version;
|
inherit (sourceInfo) name version;
|
||||||
inherit buildInputs;
|
inherit buildInputs;
|
||||||
|
|
||||||
phaseNames = ["fixPaths" "buildEQLLib" "doQMake" "doMake" "doDeploy"];
|
phaseNames = ["fixPaths" "buildEQLLib" "doQMake" "doMake" "buildLibEQL" "doDeploy"];
|
||||||
|
|
||||||
fixPaths = a.fullDepEntry (''
|
fixPaths = a.fullDepEntry (''
|
||||||
sed -re 's@[(]in-home "gui/.command-history"[)]@(concatenate '"'"'string (ext:getenv "HOME") "/.eql-gui-command-history")@' -i gui/gui.lisp
|
sed -re 's@[(]in-home "gui/.command-history"[)]@(concatenate '"'"'string (ext:getenv "HOME") "/.eql-gui-command-history")@' -i gui/gui.lisp
|
||||||
|
@ -43,11 +43,20 @@ rec {
|
||||||
qmake
|
qmake
|
||||||
'') ["addInputs"];
|
'') ["addInputs"];
|
||||||
|
|
||||||
|
buildLibEQL = a.fullDepEntry (''
|
||||||
|
sed -i eql.pro -e 's@#CONFIG += eql_dll@CONFIG += eql_dll@'
|
||||||
|
qmake
|
||||||
|
make
|
||||||
|
'') ["doUnpack" "addInputs"];
|
||||||
|
|
||||||
doDeploy = a.fullDepEntry (''
|
doDeploy = a.fullDepEntry (''
|
||||||
cd ..
|
cd ..
|
||||||
ensureDir $out/bin $out/lib/eql/
|
ensureDir $out/bin $out/lib/eql/ $out/include $out/include/gen $out/lib
|
||||||
cp -r . $out/lib/eql/build-dir
|
cp -r . $out/lib/eql/build-dir
|
||||||
ln -s $out/lib/eql/build-dir/eql $out/bin
|
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
|
||||||
|
mv $out/lib/eql/build-dir/my_app/libeql*.so* $out/lib
|
||||||
'') ["minInit" "defEnsureDir"];
|
'') ["minInit" "defEnsureDir"];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
Loading…
Reference in a new issue