2014-01-03 17:59:21 +04:00
|
|
|
{ stdenv, fetchurl, jre, makeWrapper }:
|
|
|
|
|
|
|
|
let version = "0.4.4"; in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "clooj-${version}";
|
2011-09-10 01:15:20 +04:00
|
|
|
|
|
|
|
jar = fetchurl {
|
2014-01-03 17:59:21 +04:00
|
|
|
url = "http://www.mediafire.com/download/prkf64humftrmz3/clooj-${version}-standalone.jar";
|
|
|
|
sha256 = "0hbc29bg2a86rm3sx9kvj7h7db9j0kbnrb706wsfiyk3zi3bavnd";
|
2011-09-10 01:15:20 +04:00
|
|
|
};
|
|
|
|
|
2014-01-03 17:59:21 +04:00
|
|
|
buildInputs = [ makeWrapper ];
|
2011-09-10 01:15:20 +04:00
|
|
|
|
|
|
|
phases = "installPhase";
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-01-09 16:01:38 +04:00
|
|
|
mkdir -p $out/share/java
|
|
|
|
ln -s $jar $out/share/java/clooj.jar
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/clooj --add-flags "-jar $out/share/java/clooj.jar"
|
2011-09-10 01:15:20 +04:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2014-01-03 17:59:21 +04:00
|
|
|
description = "A lightweight IDE for Clojure";
|
2011-09-10 01:15:20 +04:00
|
|
|
homepage = https://github.com/arthuredelstein/clooj;
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|