Add clooj, IDE for clojure

svn path=/nixpkgs/trunk/; revision=29149
This commit is contained in:
Marco Maggesi 2011-09-09 21:15:20 +00:00
parent bc3c074cb8
commit 3f94f217d1
4 changed files with 41 additions and 1 deletions

View file

@ -17,7 +17,6 @@ stdenv.mkDerivation {
install -t $out/lib/java clojure.jar
";
meta = {
description = "a Lisp dialect for the JVM";
homepage = http://clojure.org/;

View file

@ -0,0 +1,11 @@
{writeTextFile, jre, clooj}:
writeTextFile {
name = "clooj-wrapper";
executable = true;
destination = "/bin/clooj";
text = ''
#!/bin/sh
exec ${jre}/bin/java -jar ${clooj}/lib/java/clooj.jar
'';
}

View file

@ -0,0 +1,25 @@
{stdenv, fetchurl}:
let
jar = fetchurl {
url = https://github.com/downloads/arthuredelstein/clooj/clooj-0.1.36-STANDALONE.jar;
sha256 = "173c66c0aade3ae5d21622f629e60efa51a03ad83c087b02c25e806c5b7f838c";
};
in
stdenv.mkDerivation {
name = "clooj-0.1.32";
phases = "installPhase";
installPhase = ''
ensureDir $out/lib/java
ln -s ${jar} $out/lib/java/clooj.jar
'';
meta = {
description = "clooj, a lightweight IDE for clojure";
homepage = https://github.com/arthuredelstein/clooj;
license = stdenv.lib.licenses.bsd3;
};
}

View file

@ -2460,6 +2460,11 @@ let
#clojure = clojure_binary;
};
clooj_standalone_binary = callPackage ../development/interpreters/clojure/clooj.nix { };
clooj_wrapper = callPackage ../development/interpreters/clojure/clooj-wrapper.nix {
clooj = clooj_standalone_binary;
};
erlang = callPackage ../development/interpreters/erlang { };