Commit Graph

15 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
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
éclairevoyant
71e728d3b8
maintainers: remove ivar 2024-06-29 03:09:10 -04:00
isabel
63aceac766 treewide: remove unused occurence of fetchFromGitHub argument 2024-05-30 05:56:07 +00:00
Nick Cao
f6663692d2
Merge pull request #220552 from lasers/sm64ex
sm64ex: 0.pre+date=2021-11-30 -> unstable-2022-12-19
2023-03-12 15:03:37 +08:00
lasers
4e96143c7d sm64ex-coop: 0.pre+date=2022-08-05 -> unstable-2023-02-22 2023-03-11 02:57:34 -06:00
lasers
7be3956a46 sm64ex: 0.pre+date=2021-11-30 -> unstable-2022-12-19 2023-03-11 02:56:57 -06:00
Ivar Scholten
9aa9450e4c
sm64ex-coop: 0.pre+date=2022-05-14 -> 0.pre+date=2022-08-05, cleanup 2022-09-18 21:34:16 +02:00
Ivar Scholten
c035336c8d sm64ex-coop: init at 0.pre+date=2022-05-14 2022-06-02 00:48:22 +02:00
Thiago Kenji Okada
2a455ce212 sm64ex: unstable-2020-10-09 -> unstable-2021-11-30 2021-12-08 00:09:04 -03:00
Sandro
448e3c4d85
Merge pull request #97657 from IvarWithoutBones/sm64ex-update
sm64ex: unstable-2020-06-19 -> unstable-2020-10-09
2021-04-05 21:40:30 +02:00
IvarWithoutBones
81d749f53b sm64ex: unstable-2020-06-19 -> unstable-2020-10-09 2021-04-04 17:39:40 +02:00
Ben Siraphob
2e34288f0d pkgs/games: stdenv.lib -> lib 2021-01-15 13:36:04 +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
Ivar
8e9c0cbe2b sm64ex: init at unstable-2020-06-19 2020-07-17 01:46:55 +02:00