Commit Graph

41 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
R. Ryantm
cca88a1f5d wasmer: 4.3.4 -> 4.3.5 2024-07-24 09:32:05 +00:00
R. Ryantm
40eb217fa5 wasmer: 4.3.3 -> 4.3.4 2024-07-15 01:29:36 +00:00
R. Ryantm
c1ab863b24 wasmer: 4.3.2 -> 4.3.3 2024-07-04 16:12:14 +00:00
R. Ryantm
ba70d8f1c1 wasmer: 4.3.1 -> 4.3.2 2024-06-12 09:15:34 +00:00
Alexis Hildebrandt
f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02:00
R. Ryantm
3259f97ac0 wasmer: 4.2.7 -> 4.3.1 2024-05-24 05:34:13 +00:00
R. Ryantm
72016cd6de wasmer: 4.2.6 -> 4.2.7 2024-03-20 01:40:38 +00: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
R. Ryantm
2b3c56b036 wasmer: 4.2.5 -> 4.2.6 2024-03-04 00:25:06 +00:00
Nick Cao
cd791f6232
wasmer: add nickcao to maintainers 2023-12-26 19:43:20 -05:00
Nick Cao
58f6aba98b
wasmer: 4.2.1 -> 4.2.5
Diff: https://github.com/wasmerio/wasmer/compare/refs/tags/v4.2.1...v4.2.5
2023-12-26 19:32:39 -05:00
R. Ryantm
7e16aa5b94 wasmer: 4.2.0 -> 4.2.1 2023-10-05 17:19:10 +00:00
Nick Cao
a6fe29c2fb
wasmer: disable tests 2023-09-18 09:38:07 -04:00
Nick Cao
babf61b6e3
wasmer: 4.1.2 -> 4.2.0
Diff: https://github.com/wasmerio/wasmer/compare/refs/tags/v4.1.2...v4.2.0
2023-09-11 21:05:43 -04:00
Nick Cao
66a5b626e1
wasmer: 4.1.1 -> 4.1.2
Diff: https://github.com/wasmerio/wasmer/compare/refs/tags/v4.1.1...v4.1.2
2023-09-11 21:04:20 -04:00
Nick Cao
399f01d509
wasmer: 4.0.0 -> 4.1.1
Diff: https://github.com/wasmerio/wasmer/compare/refs/tags/v4.0.0...v4.1.1
2023-09-11 21:04:19 -04:00
Nick Cao
275360d327
wasmer: 3.1.1 -> 4.0.0 2023-06-22 22:57:44 +08:00
Nick Cao
4f1caea482
wasmer: 3.1.0 -> 3.1.1
Diff: https://github.com/wasmerio/wasmer/compare/v3.1.0...v3.1.1
2023-02-01 11:23:32 +08:00
R. Ryantm
88b3cc8ecc wasmer: 3.0.2 -> 3.1.0 2022-12-15 05:35:36 +00:00
R. Ryantm
fbcdadcb92 wasmer: 3.0.1 -> 3.0.2 2022-11-30 13:13:08 +00:00
Nick Cao
b79697e89b
wasmer: 2.3.0 -> 3.0.1 2022-11-24 22:04:20 +08:00
R. Ryantm
b40fa67604 wasmer: 2.1.1 -> 2.3.0 2022-07-31 05:56:06 +00:00
Rick van Schijndel
03bc571744
treewide: pkgs/development: mark broken for darwin 2022-05-30 13:42:57 +02:00
R. Ryantm
308ba0b97e wasmer: 2.1.0 -> 2.1.1 2021-12-22 00:35:08 +00:00
R. Ryantm
4e0f0930e9 wasmer: 2.0.0 -> 2.1.0 2021-12-05 17:47:17 +00:00
figsoda
43333d3c6e wasmer: use buildFeatures and checkFeatures 2021-11-16 08:11:51 -05:00
SCOTT-HAMILTON
2250baba4e wasmer interpreter: 1.0.2 -> 2.0.0 2021-06-21 14:07:53 +02:00
Daniël de Kok
85f96822a0 treewide: fix cargoSha256/cargoHash
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in
which cargo vendor erroneously changed permissions of vendored
crates. This was fixed in Rust
1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all
cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are
potentially broken.

This change updates cargoSha256/cargoHash tree-wide.

Fixes #121994.
2021-05-08 00:36:37 -07:00
Andrew Childs
7869d16545 llvmPackages: Multuple outputs for everythting
Also begin to start work on cross compilation, though that will have to
be finished later.

The patches are based on the first version of
https://reviews.llvm.org/D99484. It's very annoying to do the
back-porting but the review has uncovered nothing super major so I'm
fine sticking with what I've got.

Beyond making the outputs work, I also strove to re-sync the packages,
as they have been drifting pointlessly apart for some time.

----

Other misc notes, highly incomplete

- lvm-config-native and llvm-config are put in `dev` because they are
  tools just for build time.

- Clang no longer has an lld dep. That was introduced in
  db29857eb3, but if clang needs help
  finding lld when it is used we should just pass it flags / put in the
  resource dir. Providing it at build time increases critical path
  length for no good reason.

----

A note on `nativeCC`:

`stdenv` takes tools from the previous stage, so:

1. `pkgsBuildBuild`: `(?1, x, x)`
2. `pkgsBuildBuild.stdenv.cc`: `(?0, ?1, x)`

while:

1. `pkgsBuildBuild`: `(?1, x, x)`
2. `pkgsBuildBuild.targetPackages`: `(x, x, ?2)`
3. `pkgsBuildBuild.targetPackages.stdenv.cc`: `(?1, x, x)`
2021-04-30 05:41:00 +00:00
Sirio Balmelli
5ead7d9343
wasmer: 0.17.0 -> 1.0.2
Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
2021-04-03 11:37:23 +02:00
Daniël de Kok
2df314c261 wasmer: remove spurious feature quotation 2021-02-16 08:09:17 +01:00
Oleksii Filonenko
ab1fb17e59
Merge pull request #97518 from goodbyekansas/wasmer-backend
wasmer: enable cranelift backend
2021-01-19 00:49:28 +02:00
Oleksii Filonenko
512c3c0a05 maintainers: rename filalex77 -> Br1ght0ne 2020-11-17 13:09:31 +02:00
Simon Rainerson
5cf2869118 wasmer: enable cranelift backend
Since wasmer 0.17 no backends are enabled by default. Backends are now detected
using the [makefile](https://github.com/wasmerio/wasmer/blob/master/Makefile).
This change enables cranelift as this used to be the old default. At
least one backend is needed for the `run` subcommand to work. If we want
to replicate the actual logic in the makefile, we would probably want to
enable the singlepass and llvm backend as well. However enabling llvm
backend introduces a dependency on openssl, so we opted for replicating
the old default behavior.
2020-09-09 14:22:58 +02:00
zowoq
473536e3b5 buildRustPackage: remove platform.all from packages 2020-08-16 12:48:18 +10:00
Oleksii Filonenko
e2a5709d9c wasmer: 0.16.2 -> 0.17.0 2020-05-12 08:01:43 +00:00
Maximilian Bosch
37b590dc45
wasmer: 0.13.0 -> 0.16.2 2020-03-12 19:06:47 +01:00
Benjamin Hipple
e90602b8f2 wasmer: upgrade cargo fetcher and cargoSha256
Infra upgrade as part of #79975; no functional change expected.
2020-02-15 22:13:19 -08:00
Benjamin Hipple
eb11feaa0b treewide: change fetchCargoTarball default to opt-out
Changes the default fetcher in the Rust Platform to be the newer
`fetchCargoTarball`, and changes every application using the current default to
instead opt out.

This commit does not change any hashes or cause any rebuilds. Once integrated,
we will start deleting the opt-outs and recomputing hashes.

See #79975 for details.
2020-02-13 22:41:37 -08:00
Oleksii Filonenko
cd99b82d8a wasmer: init at 0.13.0 2020-01-16 12:29:04 -08:00