mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Add clooj, IDE for clojure
svn path=/nixpkgs/trunk/; revision=29149
This commit is contained in:
parent
bc3c074cb8
commit
3f94f217d1
4 changed files with 41 additions and 1 deletions
|
@ -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/;
|
||||
|
|
11
pkgs/development/interpreters/clojure/clooj-wrapper.nix
Normal file
11
pkgs/development/interpreters/clojure/clooj-wrapper.nix
Normal 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
|
||||
'';
|
||||
}
|
25
pkgs/development/interpreters/clojure/clooj.nix
Normal file
25
pkgs/development/interpreters/clojure/clooj.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue