diff options
author | Marco Maggesi <maggesi@math.unifi.it> | 2011-09-09 21:15:20 +0000 |
---|---|---|
committer | Marco Maggesi <maggesi@math.unifi.it> | 2011-09-09 21:15:20 +0000 |
commit | 3f94f217d18c538da6e9169d240740847e9e3ecb (patch) | |
tree | f298fccab047cff7d96da7f0b6041c888a381a29 /pkgs/development/interpreters/clojure | |
parent | bc3c074cb858cf82cde42212ebf66b06d3c9e370 (diff) |
Add clooj, IDE for clojure
svn path=/nixpkgs/trunk/; revision=29149
Diffstat (limited to 'pkgs/development/interpreters/clojure')
-rw-r--r-- | pkgs/development/interpreters/clojure/binary.nix | 1 | ||||
-rw-r--r-- | pkgs/development/interpreters/clojure/clooj-wrapper.nix | 11 | ||||
-rw-r--r-- | pkgs/development/interpreters/clojure/clooj.nix | 25 |
3 files changed, 36 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/clojure/binary.nix b/pkgs/development/interpreters/clojure/binary.nix index 39b98b0843c2f..7b53ea9022d68 100644 --- a/pkgs/development/interpreters/clojure/binary.nix +++ b/pkgs/development/interpreters/clojure/binary.nix @@ -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/; diff --git a/pkgs/development/interpreters/clojure/clooj-wrapper.nix b/pkgs/development/interpreters/clojure/clooj-wrapper.nix new file mode 100644 index 0000000000000..fd95b86451fe9 --- /dev/null +++ b/pkgs/development/interpreters/clojure/clooj-wrapper.nix @@ -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 + ''; +} diff --git a/pkgs/development/interpreters/clojure/clooj.nix b/pkgs/development/interpreters/clojure/clooj.nix new file mode 100644 index 0000000000000..23bf9ad03b783 --- /dev/null +++ b/pkgs/development/interpreters/clojure/clooj.nix @@ -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; + }; +} \ No newline at end of file |