Commit Graph

11 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
Lin Jian
9a31181342
dmlive: 5.3.2 -> 5.5.4
diff: 3736d83ac0...688ddda12e
2024-08-16 21:26:41 +08:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Randy Eckenrode
b45b9106f0
dmlive: add configd framework on Darwin 2024-03-23 16:34:11 -04:00
sg-qwt
f59b27f33f
dmlive: 5.3.1 -> 5.3.2 2024-02-13 21:46:15 +08:00
Lin Jian
e1b71e0d52
dmlive: 5.3.0 -> 5.3.1 2023-09-29 19:57:57 +08:00
Jian Lin
74b66861c0
treewide: add meta.mainProgram (#248750) 2023-08-12 16:24:01 -04:00
Lin Jian
b1a57457cb
dmlive: 5.2.0 -> 5.3.0 2023-07-08 16:43:18 +08:00
Lin Jian
21db59f448
dmlive: unstable-2022-11-19 -> 5.2.0 2023-03-26 00:51:48 +08:00
Lin Jian
16e164f0ef
dmlive: unstable-2022-08-22 -> unstable-2022-11-19 2022-12-03 00:22:28 +08:00
Nick Cao
8acd2a6a6c
dmlive: init at unstable-2022-08-22 2022-08-26 19:46:37 +08:00