@@ -10,33 +10,6 @@ let
1010 bnumber = with stdenv.lib; build: last (splitString "-" build);
1111 mkIdeaProduct = callPackage ./common.nix { };
1212
13− buildAndroidStudio = { name, version, build, src, license, description, wmClass }:
14− let drv = (mkIdeaProduct rec {
15− inherit name version build src wmClass jdk;
16− product = "Studio";
17− meta = with stdenv.lib; {
18− homepage = https://developer.android.com/sdk/installing/studio.html;
19− inherit description license;
20− longDescription = ''
21− Android development environment based on IntelliJ
22− IDEA providing new features and improvements over
23− Eclipse ADT and will be the official Android IDE
24− once it's ready.
25− '';
26− platforms = platforms.linux;
27− hydraPlatforms = []; # Depends on androidsdk, which hits Hydra's output limits
28− maintainers = with maintainers; [ edwtjo ];
29− };
30− });
31− in stdenv.lib.overrideDerivation drv (x : {
32− buildInputs = x.buildInputs ++ [ makeWrapper ];
33− installPhase = x.installPhase + ''
34− wrapProgram "$out/bin/android-studio" \
35− --set ANDROID_HOME "${androidsdk}/libexec/" \
36− --set LD_LIBRARY_PATH "${stdenv.cc.cc.lib}/lib" # Gradle installs libnative-platform.so in ~/.gradle, that requires libstdc++.so.6
37− '';
38− });
39−
4013 buildClion = { name, version, build, src, license, description, wmClass }:
4114 (mkIdeaProduct rec {
4215 inherit name version build src wmClass jdk;
@@ -148,20 +121,6 @@ in
148121
149122{
150123
151− android-studio = let buildNumber = "143.2915827"; in buildAndroidStudio rec {
152− name = "android-studio-${version}";
153− version = "2.1.2.0";
154− build = "AI-${buildNumber}";
155− description = "Android development environment based on IntelliJ IDEA";
156− license = stdenv.lib.licenses.asl20;
157− src = fetchurl {
158− url = "https://dl.google.com/dl/android/studio/ide-zips/${version}" +
159− "/android-studio-ide-${buildNumber}-linux.zip";
160− sha256 = "0q61m8yln77valg7y6lyxlml53z387zh6fyfgc22sm3br5ahbams";
161− };
162− wmClass = "jetbrains-studio";
163− };
164−
165124 clion = buildClion rec {
166125 name = "clion-${version}";
167126 version = "1.2.5";