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
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
Aaron Jheng
076464c9e8
amazon-qldb-shell: mark as broken 2024-04-06 12:59:29 +08:00
Weijia Wang
2cad500d79 amazon-qldb-shell: migrate to bindgenHook 2023-05-27 00:40:46 +03:00
Yureka
f8cbc3c281 tree-wide: convert rust with git deps to importCargoLock 2023-03-26 01:52:04 +01:00
Theodore Ni
aee3781ae8
amazon-qldb-shell: fix on darwin
On Darwin, the linker needs access to the Security framework.
2022-05-05 14:12:31 -05:00
Artturin
f1c7f19e49 treewide: testVersion -> testers.testVersion 2022-04-22 16:24:27 +03:00
Ryan Mulligan
9cb2503a15
Merge pull request #161881 from terlar/fix-amazon-qldb-shell-passthru-tests
amazon-qldb-shell: fix passthru.tests by specifying mainProgram
2022-02-25 20:42:58 -08:00
Terje Larsen
5611ddcd65
amazon-qldb-shell: fix passthru.tests by specifying mainProgram 2022-02-25 21:34:27 +01:00
R. Ryantm
d9ce0db8f7 amazon-qldb-shell: 2.0.0 -> 2.0.1 2022-02-25 01:29:51 +00:00
Terje Larsen
46dd7f68f3
amazon-qldb-shell: init at 2.0.0 2022-02-15 02:13:28 +01:00