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
Robert Schütz
fb2725b4cc base16-builder: drop superfluous supplement input 2024-08-05 03:34:40 -07:00
Randy Eckenrode
f9b7f4ec09
tree-wide: use top-level cctools 2024-07-17 22:36:19 -04:00
natsukium
c1eb9b5ee9
base16-builder: regenarate with nodejs_18 2023-05-10 21:32:39 +09:00
Sandro Jäckel
aad577bd30 nodejs*: normalise names to better fit other packages
Versioned package attributes are usually named like $pname_$version
eg: nodejs-14_x -> nodejs_14
2023-04-25 11:28:17 +02:00
ajs124
c4b8828630 treewide: node*.nix remove references to nodejs-12_x 2022-07-04 15:33:57 +02:00
Mario Rodas
42550027d8 treewide: remove references to nodejs-10_x
nodejs-10_x was dropped by https://github.com/NixOS/nixpkgs/pull/175637
2022-06-09 04:20:00 +00:00
Martin Weinelt
37fa1e7c1d treewide: pass and inherit writeShellScript in node2nix packages 2021-11-16 16:08:23 +01:00
Sander van der Burg
84a097848e regenerate with node2nix 1.9.0 except zigbee2mqtt 2021-02-03 19:52:09 +01:00
Ben Siraphob
32fc8b9134 pkgs/development: stdenv.lib -> lib in node-composition files
Future updates to these files should generate them with node2nix 1.9.0
which removes stdenv.lib from the generated Nix.
2021-01-30 14:42:17 +07:00
Sandro
3cd31450a1
Revert "nodePackages: regenerate with node2nix 1.9.0" 2021-01-25 11:31:27 +01:00
Sander van der Burg
3e385dc285 nodePackages: regenerate with node2nix 1.9.0 2021-01-22 22:42:58 +01:00
zowoq
8adc564f28 treewide: editorconfig fixes
- add final newline
- use spaces for indentation
2021-01-21 09:30:52 +10:00
Graham Christensen
bc49a0815a
utillinux: rename to util-linux 2020-11-24 12:42:06 -05:00
Sander van der Burg
875bcef98b base16-builder: regenerate with node2nix 1.8.0, add supplement.json with node-pre-gyp to fix build 2020-03-15 16:37:47 +01:00
volth
35d68ef143 treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
adisbladis
9e9c6de50c
nodejs-8_x: Drop package
It will be EOL within the support period of 19.09
2019-08-02 02:34:47 +02:00
adisbladis
d614edeb32
Revert Nodejs-8_x deprecation
This was supposed to go through a pull request

Revert "nodePackages: Regenerate node packages for nodejs 10 & 12"
This reverts commit 6a17bdf397.

Revert "nodejs-8_x: Drop package"
This reverts commit e06c97b71d.
2019-07-05 12:23:27 +01:00
adisbladis
e06c97b71d
nodejs-8_x: Drop package
It will be EOL within the support period of 19.09
2019-07-05 12:21:42 +01:00
Sander van der Burg
18c2b52314 node2nix: 1.6.0 -> 1.7.0 and regenerate all Nix expressions, introduce nodePackages_12_x attribute set 2019-06-05 23:48:42 +02:00
tobias pflug
0e296d5fcd
Remove nodejs-6_x which is about to enter EOL
- Remove nodejs-6_x
- Set nodejs / nodejs-slim to nodejs-8_x / nodejs-slim-8_x
- Re-generate node2nix generated files using nodejs-8_x instead
2019-04-04 18:43:06 +01:00
Sander van der Burg
0068fea88c nodePackages: regenerate with node2nix 1.6.0 2018-06-28 23:26:44 +02:00
Franz Pletz
2c9d2d6526
nodePackages: fix evaluation
Introduced in 40e3ad60aa.
2018-03-13 00:44:41 +01:00
Rok Garbas
80dbfe4afb base16-builder: init
remove base16 as it was abandoned and one of its sucessors is
base17-builder.
2017-09-30 01:01:03 +02:00