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