Commit Graph

10 Commits

Author SHA1 Message Date
Tomodachi94
5244ebe6c8 sanjuuni: fix build with FFmpeg 7
Sanjuuni fails with FFmpeg 7:
```
configure: error: Could not find
libswresample library.
```
(per https://hydra.nixos.org/build/274775547)

libswresample is part of FFmpeg.

Upstream recommends this fix (we
apply a similar one):
https://github.com/MCJack123/sanjuuni/issues/22#issuecomment-2198454686

Breakage introduced in:
https://github.com/NixOS/nixpkgs/pull/337855
2024-11-07 02:05:04 +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
Tomodachi94
3f8ab8fb2d
sanjuuni: add update script
Related discussion:
https://github.com/NixOS/nixpkgs/pull/323251#pullrequestreview-2176565501
2024-09-17 20:08:59 -07:00
Peder Bergebakken Sundt
0657c4ba88
sanjuuni: add run-on-nixos-artwork test (#314690) 2024-09-17 01:08:40 +02: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
Sigmanificient
61fe0c0416 pkgs/by-name: remove unused arguments 2024-07-26 10:11:07 +02:00
Tomo
d8008dee9f
sanjuuni: add run-on-nixos-artwork test
Tests the program by running it on a handful of entries from the
`nixos-artwork` attrset, and then test that the resulting Lua files can
be evaluated with `loadfile` in standard Lua.
2024-07-22 20:40:16 -07:00
Tomodachi94
ff931a64ad
sanjuuni: 0.4 -> 0.5
Changelog: https://github.com/MCJack123/sanjuuni/releases/tag/0.5
2024-06-30 10:15:49 -07:00
Tomodachi94
4e3a06726a
sanjuuni: format with nixfmt-rfc-style 2024-06-30 10:15:49 -07:00
Tomodachi94
ed8078b92d
sanjuuni: move to pkgs/by-name 2024-06-30 10:15:49 -07:00