Commit Graph

12 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
nicoo
2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00
Emily
0793d3ec35 harvid: fix on Darwin 2024-08-01 23:16:23 +01:00
Emily
3607d36550 harvid: enable parallel building 2024-08-01 17:48:52 +01:00
Emily
b45c0d74a2 harvid: inject version 2024-08-01 17:48:52 +01:00
Emily
2042af5d59 harvid: simplify installation 2024-08-01 17:40:59 +01:00
Emily
e3c7c5525a harvid: unpin FFmpeg 4 2024-08-01 17:40:59 +01:00
Emily
7b3a7652b5 harvid: 0.9.0 -> 0.9.1
Diff: https://github.com/x42/harvid/compare/v0.9.0...v0.9.1
2024-08-01 17:40:45 +01:00
Emily
8d3f0d9f74 harvid: add update script 2024-08-01 17:22:51 +01:00
Emily
e22163d6c9 harvid: modernize 2024-08-01 17:22:51 +01:00
Emily
6640228da6 harvid: format with nixfmt-rfc-style 2024-08-01 16:59:47 +01:00
Emily
cf59de18df harvid: move to pkgs/by-name 2024-08-01 16:59:47 +01:00