Commit Graph

6 Commits

Author SHA1 Message Date
zowoq
bda767efc9 lsd: switch to apple-sdk_11 2024-11-05 10:46:53 +10:00
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
R. Ryantm
ab8b032cd9 lsd: 1.1.3 -> 1.1.5 2024-08-26 13:01:33 +00:00
Ludovico Piero
77e7f01746
lsd: remove with lib;
Signed-off-by: Ludovico Piero <lewdovico@gnuweeb.org>
2024-08-21 00:56:11 +09:00
Ludovico Piero
c326c7959f
lsd: format with nixfmt
Signed-off-by: Ludovico Piero <lewdovico@gnuweeb.org>
2024-08-21 00:56:11 +09:00
Ludovico Piero
dac90ca0f0
lsd: move to pkgs/by-name
Signed-off-by: Ludovico Piero <lewdovico@gnuweeb.org>
2024-08-21 00:56:11 +09:00