diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2010-09-20 08:10:12 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2010-09-20 08:10:12 +0000 |
commit | c77f29daedfb1699f19902e517441cf63ecc0d96 (patch) | |
tree | 8bc02c03eb90a8de8cfa75cd791ee7ce625c9b5b /pkgs/development/compilers | |
parent | 5e32f98f5c7b4dfabf9cf17341629183aa7723fa (diff) |
Allow building EQL applications
svn path=/nixpkgs/trunk/; revision=23869
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r-- | pkgs/development/compilers/eql/default.nix | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/pkgs/development/compilers/eql/default.nix b/pkgs/development/compilers/eql/default.nix index 900cf73f835af..8a689fc1a88f8 100644 --- a/pkgs/development/compilers/eql/default.nix +++ b/pkgs/development/compilers/eql/default.nix @@ -28,7 +28,7 @@ rec { inherit (sourceInfo) name version; inherit buildInputs; - phaseNames = ["fixPaths" "buildEQLLib" "doQMake" "doMake" "doDeploy"]; + phaseNames = ["fixPaths" "buildEQLLib" "doQMake" "doMake" "buildLibEQL" "doDeploy"]; fixPaths = a.fullDepEntry ('' 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 '') ["addInputs"]; + buildLibEQL = a.fullDepEntry ('' + sed -i eql.pro -e 's@#CONFIG += eql_dll@CONFIG += eql_dll@' + qmake + make + '') ["doUnpack" "addInputs"]; + doDeploy = a.fullDepEntry ('' 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 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"]; meta = { |