2021-01-23 05:15:07 -08:00
|
|
|
{ lib, stdenv, fetchurl, jre, makeWrapper }:
|
2014-01-03 05:59:21 -08:00
|
|
|
|
|
|
|
let version = "0.4.4"; in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 14:52:01 -07:00
|
|
|
pname = "clooj";
|
|
|
|
inherit version;
|
2011-09-09 14:15:20 -07:00
|
|
|
|
|
|
|
jar = fetchurl {
|
2017-06-18 03:39:13 -07:00
|
|
|
# mirrored as original mediafire.com source does not work without user interaction
|
|
|
|
url = "https://archive.org/download/clooj-0.4.4-standalone/clooj-0.4.4-standalone.jar";
|
2014-01-03 05:59:21 -08:00
|
|
|
sha256 = "0hbc29bg2a86rm3sx9kvj7h7db9j0kbnrb706wsfiyk3zi3bavnd";
|
2011-09-09 14:15:20 -07:00
|
|
|
};
|
|
|
|
|
2021-02-07 01:17:39 -08:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2011-09-09 14:15:20 -07:00
|
|
|
|
|
|
|
phases = "installPhase";
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-01-09 04:01:38 -08: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-09 14:15:20 -07:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2014-01-03 05:59:21 -08:00
|
|
|
description = "A lightweight IDE for Clojure";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/arthuredelstein/clooj";
|
2021-01-23 05:15:07 -08:00
|
|
|
license = lib.licenses.bsd3;
|
2021-03-22 01:07:25 -07:00
|
|
|
platforms = lib.platforms.all;
|
2011-09-09 14:15:20 -07:00
|
|
|
};
|
2017-01-27 11:09:49 -08:00
|
|
|
}
|