Commit Graph

38 Commits

Author SHA1 Message Date
meutraa
7230b47079
androidStudioPackages: change --set JAVA_HOME to --set-default in wrapper 2021-02-24 09:54:30 +00:00
meutraa
337aecf983
androidStudioPackages: set JAVA_HOME in wrapper to bundled version 2021-02-10 17:30:03 +00:00
IvarWithoutBones
3c350e4b75 androidStudioPackages.{stable,beta,canary,dev}: Fix LLDB debugger 2021-02-08 02:00:12 +01:00
Ben Siraphob
badf51221d treewide: stdenv.lib -> lib 2021-01-16 17:58:11 +07:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
meutraa
e253027617
androidStudioPackages.{canary,dev}: 20.3.1.2 -> 2020.3.1.3 2020-12-26 21:32:05 +00:00
meutraa
e909c93a29
androidStudioPackages.beta: change maintainer to meutraa 2020-08-31 23:08:14 +01:00
galagora
fb7752a597 maintainers: add meutraa 2020-07-21 19:57:17 +03:00
galagora
167d5d8c3b maintainers: add galagora 2020-07-21 19:50:24 +03:00
Michael Weiss
03db2c67ac
androidStudioPackages.{beta,dev,canary}: Remove myself as maintainer
See #88071.
I'll try to maintain at least the stable channel for now and will mark
the other channels as broken after the next major stable release.
2020-07-17 15:15:09 +02:00
Nicolas Schneider
c296bf7169 android-studio: add ps to closure
When killing processes, android-studio uses `ps` to figure out which
subprocesses to kill. Without `ps` in the closure, this fails and the
process is never killed.
2020-04-21 22:48:47 +02:00
Michael Weiss
adcd8baa02
android-studio: Fix the license (unfree)
Android Studio states that it contains proprietary code!
2020-04-12 17:27:54 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Andrei Lapshin
ca00dc80bc android-studio: add missing emulator dependency 2019-12-19 10:45:37 +03:00
Vladimir Serov
d8606230a5
[fix] android-studio: added certificate bundle to /etc/pki
This fixes Flutter SDK failing on flutter pub, due to missing certificates.
Flutter does not check /etc/ssl, and can only find them in /etc/pki.
2019-11-04 16:53:02 +03:00
Alexander Bakker
a7e87bcc5b android-studio: add new emulator dependencies (#70857)
Fix #70844.
2019-10-11 12:57:42 +02:00
Michael Weiss
ef2328331c
androidStudioPackages.*: Remove the "-wrapper" suffix from name
This causes problems when parsing the name attribute, e.g. for Repology
and parseDrvName. I've added "-unwrapped" to the derivation with the
downloaded content to keep it easier to differentiate between the two.
2019-09-06 21:29:17 +02:00
Tad Fisher
29a300bff7 androidStudioPackages: prefix PATH rather than replacing 2019-05-21 14:10:01 -07:00
Michael Weiss
25205afb35
android-studio: 3.3.2.0 -> 3.4.0.18
androidStudioPackages.beta: 3.4.0.17 -> 3.4.0.18
2019-04-18 20:35:37 +02:00
Matthew Bauer
f0a6725bdc
Merge pull request #58848 from tadfisher/android-studio-unwrapped
android-studio: add "unwrapped" passthru attr
2019-04-03 11:52:24 -04:00
Tad Fisher
39badefbc0 android-studio: add "unwrapped" passthru attr 2019-04-02 13:52:23 -07:00
Michael Weiss
009719383c
androidStudioPackages.{dev,canary}: 3.5.0.7 -> 3.5.0.8 2019-03-28 22:03:09 +01:00
Michael Weiss
f7a3a5ad94
androidStudioPackages.beta: Rename the binary according to the channel
The old name "android-studio-preview" was a bit misleading while
"android-studio-beta" should clearly reflect that this is from the beta
channel. I hope that this does not break any workflows but since
"android-studio-preview" was most likely not called from any scripts the
risk should be low (also: most people probably use the stable version
anyway).
2019-01-17 19:13:06 +01:00
Michael Weiss
85e46d12b3 android-studio: Refactor the code & minor improvements 2018-09-02 18:45:40 +02:00
Bastian Köcher
6d28393eb1 android-studio: Add desktop item 2018-08-31 12:05:24 +02:00
Vladimír Čunát
86b5b1e174
Revert "android-studio-preview: Print a deprecation warning"
This reverts commit 88bfbf6c7d.
It broke the tarball job.  Discussion:
https://github.com/NixOS/nixpkgs/pull/44310#issuecomment-409690460
2018-08-02 16:32:55 +02:00
Michael Weiss
88bfbf6c7d android-studio-preview: Print a deprecation warning
Hope this is ok... :)
2018-08-01 19:47:36 +02:00
Michael Weiss
d8b44edd8f androidStudioPackages: Use more intuitive names for the derivations 2018-08-01 19:47:36 +02:00
Michael Weiss
31583d7cb6 androidStudioPackages: Refactor the code 2018-08-01 19:47:36 +02:00
Tim Engler
e1eb55deae android-studio: added libGL as a dependency
Without it, when starting an android emulator in some cases results in the
cryptic, "KVM is required to run this AVD. Unknown Error"

Fixes #41703
2018-06-30 15:16:10 +08:00
Michael Weiss
9726417975 androidStudioPackages.{dev,canary}: 3.2.0.8 -> 3.2.0.9 2018-04-09 22:55:49 +02:00
Matthew Justin Bauer
5675f17b0e
Merge pull request #35590 from TomSmeets/android-studio-ndk-fix
android-studio: Depend on ncurses5
2018-03-19 15:31:39 -05:00
Nikolay Amiantov
d7470c1f1e android-studio: fix GTK LaF
Closes #36887.
2018-03-13 16:13:18 +03:00
Tom Smeets
92e74ec236 android-studio: Depend on ncurses5
The android ndk fails to compile the test program because it could not
find the `ncurses.so.5` library.

Also, `ncurses5` is a dependency according to https://developer.android.com/studio/troubleshoot.html#linux_libraries
2018-02-26 00:03:37 +01:00
Maximilian Bosch
17dcd33e00
android-studio: set ANDROID_EMULATOR_USE_SYSTEM_LIBS
This change sets an environment variable to ensure that Android Studio
uses the correct drivers to avoid any breackage when trying to run a
native application on a virtual device.

Without proper configuration `android-studio` would be unable to load
the drivers for the AVD and yield messages like this:

```
3:32 PM	Executing tasks: [:app:assembleDebug]

3:32 PM	Emulator: libGL error: unable to load driver: i965_dri.so

3:32 PM	Emulator: libGL error: driver pointer missing

3:32 PM	Emulator: libGL error: failed to load driver: i965

3:32 PM	Emulator: libGL error: unable to load driver: i965_dri.so

3:32 PM	Emulator: libGL error: driver pointer missing

3:32 PM	Emulator: libGL error: failed to load driver: i965

3:32 PM	Emulator: libGL error: unable to load driver: swrast_dri.so

3:32 PM	Emulator: libGL error: failed to load driver: swrast

3:32 PM	Emulator: X Error of failed request:  BadValue (integer parameter out of range for operation)

3:32 PM	Emulator: Major opcode of failed request:  155 (GLX)

3:32 PM	Emulator: Minor opcode of failed request:  24 (X_GLXCreateNewContext)

3:32 PM	Emulator: Value in failed request:  0x0

3:32 PM	Emulator: Serial number of failed request:  64

3:32 PM	Emulator: Current serial number in output stream:  65

3:32 PM	Emulator: emulator: ERROR: Missing initial data partition file: /home/ma27/.android/avd/Nexus_5X_API_27.avd/userdata.img

3:32 PM	Emulator: Process finished with exit code 1

3:32 PM	Gradle build finished with 2 warnings(s) in 6s 378ms
```

For further reference have a look at the following StackOverflow
message: https://stackoverflow.com/a/40790339
2018-01-14 18:33:52 +01:00
Michael Weiss
87b215d5f7 android-studio-preview: 3.0.0.7 -> 3.0.0.8
This also contains some refactoring.
2017-08-02 02:12:11 +02:00
Michael Weiss
ace11d11b2 android-studio: Fix the meta attributes 2017-07-30 20:40:04 +02:00
Tom Smeets
9ab69a3416 android-studio-preview: init at 3.0.0.5 canary 6
Added the `androidStudioPackages` attribute containing both
the `stable` and `preview` channels.
Changed the attribute `andorid-studio` to point to
  `androidStudioPackages.stable`
Added the attribute `andorid-studio-preview` pointing to
  `androidStudioPackages.preview`

I have tested this package using the new koltin support,
no issues found yet.
2017-07-13 11:38:05 +02:00