Commit Graph

15 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
R. Ryantm
b151f8f35d vhs: 0.7.2 -> 0.8.0 2024-09-07 03:46:15 +00: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
R. Ryantm
af9f5ddf5c vhs: 0.7.1 -> 0.7.2 2024-04-16 04:41:14 +00: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
e90ec967f1 vhs: 0.6.0 -> 0.7.1 2023-12-25 01:54:19 +00:00
kashw2
b08c11c59c vhs: 0.5.0 -> 0.6.0 2023-07-26 17:28:38 +10:00
R. Ryantm
13f01e8f5d vhs: 0.4.0 -> 0.5.0 2023-05-21 00:09:19 +00:00
R. Ryantm
24dd72f6ec vhs: 0.3.0 -> 0.4.0 2023-04-23 04:24:50 +00:00
Weijia Wang
fd4b74b949 vhs: unbreak on darwin 2023-03-22 19:15:07 +02:00
Nicolas Martin
c83bee753c vhs: 0.2.0 -> 0.3.0 2023-02-25 17:28:49 +01:00
Slin Lee
f164ce4373 vhs: add chromium to wrapper 2023-02-14 06:54:29 -08:00
Slin Lee
e9748e4b9b vhs: remove unneeded buildInputs 2023-02-14 06:54:24 -08:00
R. Ryantm
fc0734833d vhs: 0.1.1 -> 0.2.0 2023-01-13 18:08:09 +08:00
Maas Lalani
2f74bf9ce8 vhs: init at 0.1.1 2022-10-29 22:44:10 -04:00