Commit Graph
16 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
h7x4andBjørn Forsman b8054ecd8a treewide: add mainProgram 2023-11-23 21:04:16 +01:00
Aaron Jheng 14f9d0c10b feedgnuplot: 1.58 -> 1.61 2022-11-11 07:26:33 +00:00
Ben SiraphobandArtturin 259fa13d53 treewide: remove nativeBuildInputs that are in stdenv 2022-04-16 21:46:46 +03:00
Mitsuhiro Nakamura b9bf2ab441 feedgnuplot: 1.51 -> 1.58 2021-05-28 20:52:39 +09:00
Mitsuhiro Nakamura 75176e353c feedgnuplot: fix perl shebang 2021-05-28 20:52:39 +09:00
Pavol Rusnak a6ce00c50c treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01: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
Michael ReillyandJörg Thalheim 84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
volth b3cc65f8b9 buildPerlPackage: name -> (pname, version) 2019-06-20 15:56:50 +00:00
volthandFrederik Rietdijk f65dfb3caf buildPerlPackage -> perlPackages.buildPerlPackage 2018-10-14 09:10:41 +02:00
Mitsuhiro Nakamuraandxeji 902c6a5d03 feedgnuplot: 1.49 -> 1.51 (#47574) 2018-10-01 17:38:27 +02:00
Mitsuhiro Nakamura 9e2755b7b3 feedgnuplot: fix build
feedgnuplot has no devdoc.
2018-08-19 23:34:30 +09:00
Mitsuhiro Nakamura b6411d5e58 feedgnuplot: disable tests 2018-06-28 20:51:41 +09:00
Mitsuhiro Nakamura c315d355be feedgnuplot: install shell completions 2018-06-28 12:23:55 +09:00
Mitsuhiro Nakamura 6262034036 feedgnuplot: init at 1.49 2018-06-28 12:21:54 +09:00