mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
idea: use openjdk8 again
This commit is contained in:
parent
b47d2f8029
commit
a8d6ad8690
2 changed files with 4 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
|||
{ stdenv, fetchurl, makeDesktopItem, makeWrapper, patchelf, p7zip
|
||||
, coreutils, gnugrep, which, git, python, unzip, androidsdk }:
|
||||
, coreutils, gnugrep, which, git, python, unzip, jdk }:
|
||||
|
||||
{ name, product, version, build, src, meta, jdk } @ attrs:
|
||||
{ name, product, version, build, src, meta } @ attrs:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ stdenv, callPackage, fetchurl, makeDesktopItem, makeWrapper, patchelf
|
||||
, coreutils, gnugrep, which, git, python, unzip, p7zip
|
||||
, androidsdk, jdk, oraclejdk8
|
||||
, androidsdk, jdk
|
||||
}:
|
||||
|
||||
assert stdenv.isLinux;
|
||||
|
@ -8,12 +8,7 @@ assert stdenv.isLinux;
|
|||
let
|
||||
|
||||
bnumber = with stdenv.lib; build: last (splitString "-" build);
|
||||
mkIdeaProduct' = callPackage ./common.nix { };
|
||||
mkIdeaProduct = attrs: mkIdeaProduct' ({
|
||||
# After IDEA 15 we can no longer use OpenJDK.
|
||||
# https://youtrack.jetbrains.com/issue/IDEA-147272
|
||||
jdk = if (bnumber attrs.build) < "143" then jdk else oraclejdk8;
|
||||
} // attrs);
|
||||
mkIdeaProduct = callPackage ./common.nix { };
|
||||
|
||||
buildAndroidStudio = { name, version, build, src, license, description }:
|
||||
let drv = (mkIdeaProduct rec {
|
||||
|
|
Loading…
Reference in a new issue