Author: maggesi
Date: Fri Sep  9 21:15:20 2011
New Revision: 29149
URL: https://ssl.nixos.org/websvn/nix/?rev=29149&sc=1

Log:
Add clooj, IDE for clojure

Added:
   nixpkgs/trunk/pkgs/development/interpreters/clojure/clooj-wrapper.nix
   nixpkgs/trunk/pkgs/development/interpreters/clojure/clooj.nix
Modified:
   nixpkgs/trunk/pkgs/development/interpreters/clojure/binary.nix
   nixpkgs/trunk/pkgs/top-level/all-packages.nix

Modified: nixpkgs/trunk/pkgs/development/interpreters/clojure/binary.nix
==============================================================================
--- nixpkgs/trunk/pkgs/development/interpreters/clojure/binary.nix      Fri Sep 
 9 20:45:04 2011        (r29148)
+++ nixpkgs/trunk/pkgs/development/interpreters/clojure/binary.nix      Fri Sep 
 9 21:15:20 2011        (r29149)
@@ -17,7 +17,6 @@
     install -t $out/lib/java clojure.jar
   ";
 
-
   meta = {
     description = "a Lisp dialect for the JVM";
     homepage = http://clojure.org/;

Added: nixpkgs/trunk/pkgs/development/interpreters/clojure/clooj-wrapper.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/development/interpreters/clojure/clooj-wrapper.nix       
Fri Sep  9 21:15:20 2011        (r29149)
@@ -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
+  '';
+}

Added: nixpkgs/trunk/pkgs/development/interpreters/clojure/clooj.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/development/interpreters/clojure/clooj.nix       Fri Sep 
 9 21:15:20 2011        (r29149)
@@ -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

Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix       Fri Sep  9 20:45:04 
2011        (r29148)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix       Fri Sep  9 21:15:20 
2011        (r29149)
@@ -2460,6 +2460,11 @@
     #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 { };
 
_______________________________________________
nix-commits mailing list
nix-comm...@cs.uu.nl
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to