Commit Graph

23 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
90de11ce8a node-problem-detector: 0.8.18 -> 0.8.19 2024-05-22 03:51:23 +00:00
R. Ryantm
366251726e node-problem-detector: 0.8.16 -> 0.8.18 2024-04-08 20:04:55 +00:00
R. Ryantm
b2e3feee30 node-problem-detector: 0.8.15 -> 0.8.16 2024-03-05 01:20:09 +00:00
R. Ryantm
15ffc7c27f node-problem-detector: 0.8.14 -> 0.8.15 2024-02-04 11:15:09 +00:00
kashw2
1e4a48a633 node-problem-detector: 0.8.13 -> 0.8.14 2023-09-05 19:38:54 +10:00
R. Ryantm
80f5b1d792 node-problem-detector: 0.8.12 -> 0.8.13 2023-04-28 00:37:07 +00:00
R. Ryantm
c018ad1418 node-problem-detector: 0.8.11 -> 0.8.12 2022-09-10 01:51:01 +00:00
R. Ryantm
dfbe09a1e3 node-problem-detector: 0.8.10 -> 0.8.11 2022-08-02 19:22:18 +00:00
R. RyanTM
be9902b000 node-problem-detector: 0.8.9 -> 0.8.10 2021-09-14 17:47:34 +00:00
R. RyanTM
0649d2c8a1 node-problem-detector: 0.8.7 -> 0.8.9 2021-08-15 12:56:27 +00:00
zowoq
b0f7b71577 node-problem-detector: buildFlags{,Array} -> ldflags, tags
also remove `-mod vendor` as it is the default with `buildGoModule`
2021-08-07 15:00:03 +10:00
R. RyanTM
2b2772fa0d node-problem-detector: 0.8.6 -> 0.8.7 2021-02-21 01:22:58 +00:00
R. RyanTM
2cfab8b61c node-problem-detector: 0.8.5 -> 0.8.6 2021-02-03 18:10:45 +00:00
Ben Siraphob
108bdac3d9 pkgs/applications: 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
R. RyanTM
e8c2cf4ea2 node-problem-detector: 0.8.4 -> 0.8.5 2020-12-10 21:42:01 +00:00
R. RyanTM
bc6b53b6df node-problem-detector: 0.8.3 -> 0.8.4 2020-09-05 08:32:53 +00:00
R. RyanTM
8e6d8fe9f3 node-problem-detector: 0.8.2 -> 0.8.3 2020-08-26 08:52:10 +02:00
zowoq
cea7cd902e buildGoModule packages: set doCheck = false 2020-08-10 16:02:30 +10:00
R. RyanTM
e833b55bd0 node-problem-detector: 0.8.1 -> 0.8.2 2020-06-06 12:34:24 -04:00
Colin L Rice
d6162dab50
go-modules: Update files to use vendorSha256 2020-05-14 07:22:21 +01:00
Louis Blin
511cb624b7 node-problem-detector: init at 0.8.1
Package is missing, built from Golang sources on GitHub.
2020-04-06 08:35:22 +01:00