Commit Graph

25 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
Wolfgang Walther
e3244e9ff0
treewide: replace xxxFlagsArray with non-Array variant in nix code
The xxxFlagsArray variants were never meant to be used in nix code, at
least they can't be used properly without __structuredAttrs turned on.

If no spaces are passed in the argument the xxxFlagsArray can be
replaced as-is with the non-Array variant. When whitespace needs to be
passed, the derivation is additionally changed to enable
__structuredAttrs.
2024-08-19 23:28:13 +02:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
R. Ryantm
caf0a0bdf3 monolith: 2.8.0 -> 2.8.1 2024-01-22 07:46:54 +00:00
Weijia Wang
cb0f22b4d4 monolith: add missing framework on darwin 2024-01-19 17:12:14 +01:00
R. Ryantm
ef47f32b6f monolith: 2.7.0 -> 2.8.0 2024-01-13 22:11:43 +00:00
R. Ryantm
2acd1aca5a monolith: 2.6.2 -> 2.7.0 2022-11-12 14:54:30 +00:00
R. Ryantm
ff1dce127b monolith: 2.6.1 -> 2.6.2 2022-08-15 11:51:44 +00:00
R. RyanTM
0daff52e70 monolith: 2.4.1 -> 2.6.1 2021-08-14 16:22:48 +00:00
Jonathan Ringer
f7a112f6c4
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
  pkgs/applications/graphics/emulsion/default.nix
  pkgs/development/tools/misc/texlab/default.nix
  pkgs/development/tools/rust/bindgen/default.nix
  pkgs/development/tools/rust/cargo-udeps/default.nix
  pkgs/misc/emulators/ruffle/default.nix
  pkgs/tools/misc/code-minimap/default.nix
2021-05-18 08:57:16 -07:00
Stéphan Kochen
5a73259a3b monolith: fix darwin build 2021-05-17 22:19:42 +02: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
e1ae077b4b monolith: 2.4.0 -> 2.4.1 2021-03-15 03:48:37 -04:00
R. RyanTM
6a1ed983ba monolith: 2.3.1 -> 2.4.0 2021-01-20 05:19:53 +00:00
Ben Siraphob
8c5d37129f pkgs/tools: stdenv.lib -> lib 2021-01-15 17:12:36 +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
R. RyanTM
d3178c99cc monolith: 2.3.0 -> 2.3.1 2020-08-06 14:56:49 +00:00
R. RyanTM
d666802958 monolith: 2.2.7 -> 2.3.0 2020-07-16 08:02:10 +00:00
R. RyanTM
ae85fea87b monolith: 2.2.6 -> 2.2.7 2020-06-06 13:13:02 +00:00
Mario Rodas
3a3cbfd12b
monolith: enable on darwin 2020-05-24 23:23:23 -05:00
R. RyanTM
8198d23ed7 monolith: 2.2.5 -> 2.2.6 2020-05-25 00:08:48 +00:00
Oleksii Filonenko
0581aa6ceb monolith: 2.2.4 -> 2.2.5 2020-05-12 07:46:26 +00:00
Oleksii Filonenko
ca417e5c95 monolith: 2.2.2 -> 2.2.4 2020-04-29 13:33:01 +03:00
Oleksii Filonenko
457900c7c8 monolith: init at 2.2.2 2020-04-08 15:48:18 +03:00