Commit Graph

679 Commits

Author SHA1 Message Date
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Siddarth Kumar
15d5ce3687
xcodeenv: accept version & perform runtime checks
- xcodewrapper nix derivation has been updated to now accept a list of acceptable versions.
- allowHigher is now removed
- this matches closely to what we use for building react-native with nix at status-mobile repo
ref -> https://github.com/status-im/status-mobile/blob/develop/nix/pkgs/xcodeenv/compose-xcodewrapper.nix
- The key change done here is that now xcodewrapper checks Xcode versions at runtime instead of build time. This helps us to show warning messages when underlying environment does not have the Xcode version we want to support.
2024-09-12 20:43:05 +05:30
pinage404
5e8d9db28a maestro: refactor move to pkgs/by-name 2024-09-01 17:37:59 +02:00
Peder Bergebakken Sundt
e471916645
treewide: passthru nixos test (#334491) 2024-08-18 00:29:43 +02:00
Sigmanificient
63d05d989e pkgs/development: remove unused arguments 2024-08-03 17:18:20 +02:00
Jörg Thalheim
5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00
Anderson Torres
539575ab2b treewide: remove yana from meta.maintainers [orphans] 2024-07-22 16:22:39 -03:00
Anderson Torres
6dba240f79 treewide: remove dtzWill as maintainer [orphans]
Since theey is not active in a long span of time.

All the packages in this commit are now orphan.
2024-07-17 13:52:45 -03:00
Pavel Sobolev
72a3c73d85
ios-webkit-debug-proxy: move to pkgs/by-name 2024-07-13 23:06:45 +03:00
NAHO
a7cc1dcd68
treewide: fix broken 'nix.dev' URLs 2024-07-07 17:15:35 +02:00
Pol Dellaiera
4b2ef8f2f0
Merge pull request #315233 from numinit/android-studio-full
android-studio-full: init
2024-06-16 08:35:21 +02:00
Travis A. Everett
9ff9bbdb34
doc: add stdenv passthru chapter (#315909)
* doc: add stdenv passthru chapter

Broad strokes:
- create the chapter
- move existing stdenv passthru coverage into it
- move out-of-place coverage of passthru.tests from the stdenv meta chapter into it
- (try to) apply 1-sentence-per-line to text I've touched
- add legacy anchors for everything moved
- update existing links to the new anchors
- add tentative motivating text
- make nixpkgs-internal links relative/branchless

razor: if it is only ever needed by contributors, which is likely if links
refer to the latest revision of the source code, then it's for
the contributor guide

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2024-06-11 10:51:03 +02:00
Weijia Wang
22efc26af3
Merge pull request #317140 from r-ryantm/auto-update/genymotion
genymotion: 3.7.0 -> 3.7.1
2024-06-10 18:52:59 +02:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
R. Ryantm
348a462cb7 genymotion: 3.7.0 -> 3.7.1 2024-06-04 08:28:33 +00:00
Morgan Jones
88ef7a8598
{android-studio,androidenv}: add withSdk passthru and androidPkgs
Rename androidPkgs_9_0 to androidPkgs, and treat it more like a "full"
androidenv package.
2024-06-03 23:01:44 -07:00
Domen Kožar
ac82a513e5
Merge pull request #313255 from Philipp-M/androidenv-fix-ndk-toolchains
androidenv: fix NDK toolchain linking issues
2024-05-29 12:04:41 +02:00
R. Ryantm
1fab0aff29 genymotion: 3.6.0 -> 3.7.0 2024-05-25 03:53:08 +00:00
Philipp Mildenberger
de0fdc1c78
androidenv: fix NDK toolchain linking issues
Fixes #298285, alternative to #300386.

As suggested in #298285 `lib64` was renamed to `lib`, so just doing the same
as for `lib64` seems to fix the issue.

See also recent discussion in #300386.
2024-05-21 00:08:09 +02:00
Weijia Wang
4265a82cba genymotion: fix runtime error with qemu 2024-05-03 08:42:58 +02:00
Sandro
01ec8ad898
Merge pull request #304716 from asyncmeow/fix-compose-android-packages
androidenv: fix compose-android-packages on non-x86_64 environments
2024-04-18 13:02:15 +02:00
pearl
0e2402e288 androidenv: fix compose-android-packages on non-x86_64 environments
This has always been possible, however the nix package previously checked against stdenv.system with only x86_64 architectures used.
2024-04-16 23:55:15 -04:00
Morgan Jones
a10fada751
androidenv: update to latest 2024-04-09 20:10:14 -07:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
SubhrajyotiSen
6facde8392 maestro: 1.35.0 -> 1.36.0 2024-02-15 20:40:50 +05:30
Hadi
3f00b40fff
androidenv: don't include emulator when includeEmulator is false 2024-01-22 19:04:40 -05:00
Weijia Wang
f51406554e genymotion: add more runtime dependencies 2024-01-20 09:50:02 +01:00
Janne Heß
64ada30bd5
Merge pull request #279886 from helsinki-systems/drop/broken-nix-files
emacs/titaniumenv: Drop broken files
2024-01-16 09:23:48 +01:00
Janne Heß
9d5b48721d
emacs/titaniumenv: Drop broken files
These files don't even parse using `nix-instantiate --parse`:
> error: undefined variable 'haskell-mode'
> error: undefined variable 'lib'

While these issues could be trivially fixed, the fact that these files
are not even parsable by nix-instantiate shows me that they are probably
unnecessary.
2024-01-09 20:38:14 +01:00
SubhrajyotiSen
1853e14a11 maestro: 1.34.1 -> 1.35.0 2024-01-09 00:33:06 +05:30
R. Ryantm
d5a6a6c737 genymotion: 3.5.1 -> 3.6.0 2023-12-23 20:16:17 +00:00
Hadi
da977da39e
androidenv: fix bugs, add new arguments, and deprecate arguments
- Fix the bug in #265479
- New arguments:
  - configOptions
  - deviceName
- Deprecate arguments:
  - enableGPU
2023-12-15 16:20:39 -05:00
SubhrajyotiSen
3ce916bc74 maestro: 1.34.0 -> 1.34.1 2023-11-10 15:18:40 -08:00
Morgan Jones
1809b32877 androidenv: updates for Android API 34 2023-11-05 14:31:44 +01:00
SubhrajyotiSen
35bbc976e6 maestro: 1.33.1 -> 1.34.0 2023-11-01 11:44:44 +05:30
R. Ryantm
bd11e0ffe3 genymotion: 3.5.0 -> 3.5.1 2023-10-17 09:55:56 +00:00
SubhrajyotiSen
649f23f9b8 maestro: 1.33.0 -> 1.33.1 2023-10-03 10:29:25 +05:30
SubhrajyotiSen
48399b7182 maestro: 1.32.0 -> 1.33.0 2023-09-21 16:35:22 +05:30
Fabián Heredia Montiel
ff323ed355 treewide: vendorSha256 → vendorHash
via: `find pkgs/ -type f -exec sed -i 's/vendorSha256 = "sha256/vendorHash = "sha256/' {};`
2023-09-13 01:03:44 -06:00
Artturi
2816671186
Merge pull request #230344 from hadilq/androidenv-remove-avd-list-target 2023-09-08 22:18:36 +03:00
Artturi
bd0a150fdf
Merge pull request #224415 from SomeoneSerge/androidenv-buildApp-fix 2023-09-08 17:54:49 +03:00
Someone Serge
5cedb097a0 androidenv.buildApp: fix after callPackage switch
builtins.functionArgs doesn't work with (callPackage composeAndroidPackages { .. })
2023-09-08 16:30:56 +03:00
SubhrajyotiSen
53c6dd8c58 maestro: 1.31.0 -> 1.32.0 2023-09-07 00:35:25 +05:30
Robert Schütz
6e701c43e2 titanium: use buildNpmPackage 2023-09-02 19:46:40 -07:00
Robert Schütz
d2e93acf32 titanium-alloy: use buildNpmPackage 2023-09-02 19:46:07 -07:00
R. Ryantm
56f2307ab6 genymotion: 3.4.0 -> 3.5.0 2023-08-24 12:05:09 +00:00
Robert Schütz
33c08708f1 cordova: use buildNpmPackage 2023-08-21 17:37:02 -07:00
Nick Cao
dbf5978a61
Merge pull request #248435 from hadilq/androidenv-fix-cmdline-beta-version
androidenv fix cmdline beta versions' problem
2023-08-13 00:25:14 -06:00
Nick Cao
68ba1acf87
Merge pull request #248440 from hadilq/androidenv-update-packages
androidenv update packages
2023-08-13 00:24:35 -06:00
Hadi
430200fe06
androidenv update packages 2023-08-10 20:27:06 -04:00