Commit Graph

12 Commits

Author SHA1 Message Date
R. Ryantm
4adac0bc9b screenly-cli: 1.0.1 -> 1.0.2 2024-11-12 18:44:08 +00: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
17f8866661 screenly-cli: 1.0.0 -> 1.0.1 2024-09-15 19:55:17 +00:00
Jon Seager
18225f75ff
screenly-cli: 0.2.8 -> 1.0.0 2024-09-09 11:29:35 +01:00
Jon Seager
5584442fab
screenly-cli: format with nixfmt-rfc-style 2024-08-13 14:28:21 +01:00
Jon Seager
47ccc7b32c
screenly-cli: 0.2.7 -> 0.2.8 2024-08-13 14:28:00 +01:00
R. Ryantm
8180d2afe0 screenly-cli: 0.2.6 -> 0.2.7 2024-05-21 00:18:39 +00:00
Jon Seager
7d28a01255
screenly-cli: 0.2.5 -> 0.2.6 2024-05-10 10:13:11 +01:00
Jon Seager
0ae1490b65
screenly-cli: 0.2.4 -> 0.2.5 2024-03-25 10:14:04 +00:00
Jon Seager
0f5c4e1f13
screenly-cli: add nix-update-script 2024-03-01 10:47:11 +00:00
Jon Seager
94a7ad6f8f
screenly-cli: 0.2.3 -> 0.2.4 2024-03-01 10:47:09 +00:00
Jon Seager
9c4dd01dea
screenly-cli: init at 0.2.3 2023-11-30 16:41:47 +00:00