mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
clojure: Update to 1.5.1
Also, merge the wrapper into the main package, and get rid of the binary variant.
This commit is contained in:
parent
b96d3ca233
commit
8398b23e10
@ -1,47 +0,0 @@
|
||||
{stdenv, fetchurl, unzip}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.5.1";
|
||||
name = "clojure-binary-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://repo1.maven.org/maven2/org/clojure/clojure/${version}/clojure-${version}.zip";
|
||||
sha256 = "1qgiji6ddvv40khp3qb3xfz09g7p4nnsh3pywqglb9f16v534yzy";
|
||||
};
|
||||
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
|
||||
phases = "unpackPhase installPhase";
|
||||
|
||||
installPhase = "
|
||||
mkdir -p $out/lib/java
|
||||
cp clojure-${version}.jar clojure.jar
|
||||
install -t $out/lib/java clojure.jar
|
||||
";
|
||||
|
||||
meta = {
|
||||
description = "a Lisp dialect for the JVM";
|
||||
homepage = http://clojure.org/;
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
longDescription = ''
|
||||
Clojure is a dynamic programming language that targets the Java
|
||||
Virtual Machine. It is designed to be a general-purpose language,
|
||||
combining the approachability and interactive development of a
|
||||
scripting language with an efficient and robust infrastructure for
|
||||
multithreaded programming. Clojure is a compiled language - it
|
||||
compiles directly to JVM bytecode, yet remains completely
|
||||
dynamic. Every feature supported by Clojure is supported at
|
||||
runtime. Clojure provides easy access to the Java frameworks, with
|
||||
optional type hints and type inference, to ensure that calls to Java
|
||||
can avoid reflection.
|
||||
|
||||
Clojure is a dialect of Lisp, and shares with Lisp the code-as-data
|
||||
philosophy and a powerful macro system. Clojure is predominantly a
|
||||
functional programming language, and features a rich set of immutable,
|
||||
persistent data structures. When mutable state is needed, Clojure
|
||||
offers a software transactional memory system and reactive Agent
|
||||
system that ensure clean, correct, multithreaded designs.
|
||||
'';
|
||||
};
|
||||
}
|
@ -1,30 +1,27 @@
|
||||
{stdenv, fetchurl, unzip, ant, version ? "1.4.0" }:
|
||||
{ stdenv, fetchurl, unzip, ant, jdk, makeWrapper }:
|
||||
|
||||
let version = "1.5.1"; in
|
||||
|
||||
let
|
||||
src_hashes = {
|
||||
"1.4.0" = "27a5a151d5cc1bc3e52dff47c66111e637fefeb42d9bedfa1284a1a31d080171";
|
||||
"1.5.0-RC1" = "111jm0nxkvqr1vrwcpvr70v5paasp8msrj5h8zm1c144c8zc1vln";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "clojure-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://repo1.maven.org/maven2/org/clojure/clojure/${version}/clojure-${version}.zip";
|
||||
sha256 = (builtins.getAttr version src_hashes);
|
||||
sha256 = "1qgiji6ddvv40khp3qb3xfz09g7p4nnsh3pywqglb9f16v534yzy";
|
||||
};
|
||||
|
||||
buildInputs = [ unzip ant ];
|
||||
buildInputs = [ unzip ant jdk makeWrapper ];
|
||||
|
||||
buildPhase = "ant jar";
|
||||
|
||||
installPhase = "
|
||||
mkdir -p $out/lib/java
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib/java $out/bin/java
|
||||
install -t $out/lib/java clojure.jar
|
||||
";
|
||||
makeWrapper ${jdk.jre}/bin/java $out/bin/clojure --add-flags "-cp $out/lib/java/clojure.jar clojure.main"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "a Lisp dialect for the JVM";
|
||||
description = "A Lisp dialect for the JVM";
|
||||
homepage = http://clojure.org/;
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
longDescription = ''
|
||||
|
@ -1,11 +0,0 @@
|
||||
{writeTextFile, jre, clojure}:
|
||||
|
||||
writeTextFile {
|
||||
name = "clojure-wrapper";
|
||||
executable = true;
|
||||
destination = "/bin/clojure";
|
||||
text = ''
|
||||
#!/bin/sh
|
||||
exec ${jre}/bin/java -cp ${clojure}/lib/java/clojure.jar clojure.main
|
||||
'';
|
||||
}
|
@ -3192,14 +3192,6 @@ let
|
||||
|
||||
clojure = callPackage ../development/interpreters/clojure { };
|
||||
|
||||
clojureUnstable = callPackage ../development/interpreters/clojure { version = "1.5.0-RC1"; };
|
||||
|
||||
clojure_binary = callPackage ../development/interpreters/clojure/binary.nix { };
|
||||
|
||||
clojure_wrapper = callPackage ../development/interpreters/clojure/wrapper.nix {
|
||||
#clojure = clojure_binary;
|
||||
};
|
||||
|
||||
clooj_standalone_binary = callPackage ../development/interpreters/clojure/clooj.nix { };
|
||||
|
||||
clooj_wrapper = callPackage ../development/interpreters/clojure/clooj-wrapper.nix {
|
||||
|
@ -162,7 +162,6 @@ let
|
||||
clisp = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };
|
||||
clisp_2_44_1 = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };
|
||||
clojure = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };
|
||||
clojure_wrapper = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };
|
||||
clooj_wrapper = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };
|
||||
clucene_core_2 = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };
|
||||
clutter = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };
|
||||
|
Loading…
Reference in New Issue
Block a user