Commit Graph

24 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
b3e2ac82e2 sozu: 0.15.19 -> 1.0.4 2024-07-28 01:17:20 +00:00
Jussi Kuokkanen
82b45bf454 treewide: remove licenses.agpl3 2024-03-21 18:09:24 +02:00
R. Ryantm
8f6ef9742a sozu: 0.15.18 -> 0.15.19 2024-01-26 16:45:47 +01:00
R. Ryantm
fab307f1f4 sozu: 0.15.15 -> 0.15.18 2023-12-23 11:43:00 +00:00
Gaël Reyrol
78690bc7aa
sozu: 0.15.13 -> 0.15.15 2023-11-15 11:08:13 +01:00
Gaël Reyrol
a112662b80
sozu: 0.15.6 -> 0.15.13 2023-10-29 11:14:57 +01:00
Gaël Reyrol
fde92ba5c4
sozu: 0.15.5 -> 0.15.6 2023-10-12 17:23:15 +02:00
Gaël Reyrol
3e2a9e7137
sozu: 0.15.4 -> 0.15.5 2023-09-26 09:44:35 +02:00
Gaël Reyrol
af420b010a
sozu: 0.15.3 -> 0.15.4 2023-09-15 14:22:34 +02:00
Weijia Wang
f8438ab701 sozu: update platforms 2023-08-09 23:21:37 +02:00
Gaël Reyrol
9c65192829
sozu: 0.15.2 -> 0.15.3 2023-08-09 11:57:48 +02:00
Gaël Reyrol
5aa2794e17
sozu: 0.15.1 -> 0.15.2 2023-07-17 20:03:39 +02:00
Gaël Reyrol
ba6d1f7d6a
sozu: 0.15.0 -> 0.15.1 2023-07-11 19:44:42 +02:00
Gaël Reyrol
eb8ac66ec4
sozu: 0.13.6 -> 0.15.0 2023-06-29 21:57:59 +02:00
R. RyanTM
0a7426b931 sozu: 0.11.56 -> 0.13.6 2021-08-23 19:11:28 +09: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
R. RyanTM
6413830c61 sozu: 0.11.50 -> 0.11.56 2021-03-09 19:17:20 +00:00
Ben Siraphob
872973d7d1 pkgs/servers: stdenv.lib -> lib 2021-01-15 14:24:03 +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
Oleksii Filonenko
512c3c0a05 maintainers: rename filalex77 -> Br1ght0ne 2020-11-17 13:09:31 +02:00
happysalada
de694b3a14 sozu: 0.11.46 -> 0.11.50; fix Darwin build 2020-11-01 16:34:16 +09:00
zowoq
7d58c271b8 buildRustPackage packages: editorconfig fixes 2020-07-31 14:08:19 +10:00
Oleksii Filonenko
40d5a07ebe sozu: init at 0.11.46 2020-03-31 11:48:10 +03:00