nixpkgs-suyu/pkgs/development/interpreters/clojure/clooj.nix

31 lines
821 B
Nix
Raw Normal View History

{ stdenv, fetchurl, jre, makeWrapper }:
let version = "0.4.4"; in
stdenv.mkDerivation {
2019-08-13 23:52:01 +02:00
pname = "clooj";
inherit version;
jar = fetchurl {
2017-06-18 12:39:13 +02: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";
sha256 = "0hbc29bg2a86rm3sx9kvj7h7db9j0kbnrb706wsfiyk3zi3bavnd";
};
buildInputs = [ makeWrapper ];
phases = "installPhase";
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"
'';
meta = {
description = "A lightweight IDE for Clojure";
homepage = "https://github.com/arthuredelstein/clooj";
license = stdenv.lib.licenses.bsd3;
};
2017-01-27 20:09:49 +01:00
}