Commit Graph

14 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
Wolfgang Walther
e3244e9ff0
treewide: replace xxxFlagsArray with non-Array variant in nix code
The xxxFlagsArray variants were never meant to be used in nix code, at
least they can't be used properly without __structuredAttrs turned on.

If no spaces are passed in the argument the xxxFlagsArray can be
replaced as-is with the non-Array variant. When whitespace needs to be
passed, the derivation is additionally changed to enable
__structuredAttrs.
2024-08-19 23:28:13 +02:00
Sigmanificient
a5e85e2ff5 xmoji: init at 0.5.1 2024-08-10 17:01:32 +02:00
zhoufanjin
99da330f23
treewide: fix some comments (#330407)
Signed-off-by: zhoufanjin <shuangcui@live.cn>
2024-07-27 22:05:18 +08:00
aleksana
592e3845c4 treewide: sha256 -> hash attribute for fetchgit 2024-07-14 19:10:08 +08:00
Paul Meyer
57e918e2bf
Merge pull request #318266 from katexochen/xmonad-log/mod
xmonad-log: 0.1.0 -> 0.1.0-unstable-2024-06-14
2024-06-19 15:55:20 +02:00
Paul Meyer
fa547edc66 xmonad-log: move to by-name
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
2024-06-17 08:29:37 +02: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
kirillrdy
272d7433da
Merge pull request #305096 from Tochiaha/xmltoman
xmltoman: init at 0.6
2024-06-07 06:23:39 +10:00
Tochiaha
40df049f42 xmltoman: init at 0.6 2024-06-03 01:09:51 +01:00
Sigmanificient
f867fae833 xml-tooling-c: adopt, migrate to by-name, refactor 2024-05-08 18:34:49 +02:00
Jasper Chan
5b8f923cab xmpp-bridge: init at 0.6.0
Co-authored-by: Anderson Torres <torres.anderson.85@protonmail.com>
Co-authored-by: h7x4 <h7x4@nani.wtf>
2024-01-18 09:22:17 -08:00
Anderson Torres
841d183806 xmldiff: 2.4 -> 2.6.3 2023-10-04 21:56:31 -03:00