From b2c555ee02e1034d8294b916c6f5f4fb7b31a540 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Fri, 17 Sep 2010 19:52:50 +0000 Subject: [PATCH] Add EQL (Embeddable Common Lisp + Qt) svn path=/nixpkgs/trunk/; revision=23842 --- pkgs/development/compilers/eql/default.nix | 71 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 73 insertions(+) create mode 100644 pkgs/development/compilers/eql/default.nix diff --git a/pkgs/development/compilers/eql/default.nix b/pkgs/development/compilers/eql/default.nix new file mode 100644 index 00000000000..3e85c1bd65d --- /dev/null +++ b/pkgs/development/compilers/eql/default.nix @@ -0,0 +1,71 @@ +x@{builderDefsPackage + , fetchgit, qt4, ecl + , ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + ["fetchgit"]; + + buildInputs = map (n: builtins.getAttr n x) + (builtins.attrNames (builtins.removeAttrs x helperArgNames)); + sourceInfo = { + method = "fetchgit"; + rev = "370b7968fd73d5babc81e35913a37111a788487f"; + url = "git://gitorious.org/eql/eql"; + hash = "2370e111d86330d178f3ec95e8fed13607e51fed8859c6e95840df2a35381636"; + name = "eql-git"; + }; +in +rec { + src = a.fetchgit { + url = sourceInfo.url; + sha256 = sourceInfo.hash; + rev = sourceInfo.rev; + } + "/"; + + inherit (sourceInfo) name version; + inherit buildInputs; + + phaseNames = ["fixPaths" "buildEQLLib" "doQMake" "doMake" "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 + '') ["minInit" "doUnpack"]; + + buildEQLLib = a.fullDepEntry ('' + cd src + ecl -shell make-eql-lib.lisp + '') ["doUnpack" "addInputs"]; + + doQMake = a.fullDepEntry ('' + qmake + '') ["addInputs"]; + + doDeploy = a.fullDepEntry ('' + cd .. + ensureDir $out/bin $out/lib/eql/ + cp -r . $out/lib/eql/build-dir + ln -s $out/lib/eql/build-dir/eql $out/bin + '') ["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"; + }; + }; +}) x + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d82fe06c06c..e03c831dbba 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1410,6 +1410,8 @@ let inherit gmp mpfr; }; + eql = callPackage ../development/compilers/eql {}; + adobe_flex_sdk = callPackage ../development/compilers/adobe-flex-sdk { }; fpc = callPackage ../development/compilers/fpc { };