mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
gradle: update to 2.1
This commit is contained in:
parent
37b1a0b79a
commit
f1935d8eb8
@ -1,11 +1,11 @@
|
|||||||
{ stdenv, fetchurl, unzip, jdk, makeWrapper }:
|
{ stdenv, fetchurl, unzip, jdk, makeWrapper }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "gradle-1.11";
|
name = "gradle-2.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://services.gradle.org/distributions/${name}-bin.zip";
|
url = "http://services.gradle.org/distributions/${name}-bin.zip";
|
||||||
sha256 = "14a0qdzjiar97l9a0i3ds2y48p1lrqkj7skkkvhz0r29hbgkbqh7";
|
sha256 = "0y7qifc61nng24zn73bdwh5d0m25dnllfiwfkyw220mblag4zviy";
|
||||||
};
|
};
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
makeWrapper ${jdk}/bin/java $out/bin/gradle \
|
makeWrapper ${jdk}/bin/java $out/bin/gradle \
|
||||||
--set JAVA_HOME ${jdk} \
|
--set JAVA_HOME ${jdk} \
|
||||||
--add-flags "-classpath $out/lib/gradle-launcher-1.11.jar org.gradle.launcher.GradleMain"
|
--add-flags "-classpath $out/lib/gradle-launcher-2.1.jar org.gradle.launcher.GradleMain"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
phases = "unpackPhase installPhase";
|
phases = "unpackPhase installPhase";
|
||||||
|
Loading…
Reference in New Issue
Block a user