Commit Graph

80 Commits

Author SHA1 Message Date
aleksana
571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00
Martin Weinelt
4168b53b73
SDL_stretch: mark broken on darwin
Also disables sdltest on darwin, since it breaks during configure.

And reformats the package, since meta was overindented.
2024-11-07 23:16:24 +01:00
Zhong Jianxin
083d0095e6 SDL_gpu: Fix build on clang 16 2024-11-04 20:01:29 +08:00
Zhong Jianxin
c06d108c27 SDL_gpu: Format using nixfmt-rfc-style 2024-11-04 19:50:26 +08:00
Martin Weinelt
e19b0195b4
SDL_sound: fix sdltest flag 2024-11-04 04:47:19 +01:00
Martin Weinelt
e0b41a76dd
SDL_ttf: fix sdltest configure flag
The leading dash in the flagname resulted in sdltest not being toggled at
all, which broke the darwin build.
2024-11-04 03:54:41 +01:00
Artturin
f0e657f3b1 Merge branch 'master' into staging-next 2024-09-25 06:05:01 +03: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
github-actions[bot]
1c4acc409e
Merge staging-next into staging 2024-09-16 06:05:33 +00:00
Alyssa Ross
acff7907ed
SDL1: fix building for musl with GCC 14 2024-09-15 22:15:20 +02:00
github-actions[bot]
84a5c54b60
Merge staging-next into staging 2024-09-15 12:05:26 +00: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
Fabián Heredia Montiel
a4145a81d1 treewide: add -Wno-error= due to compilation error with gcc_14 2024-09-11 01:44:17 -06:00
Anderson Torres
198dd168d5 SDL1: lib.optionals instead of lib.optional 2024-09-04 16:40:57 -03:00
Anderson Torres
83c5ee361c SDL1: hammering 2024-09-04 16:40:56 -03:00
Anderson Torres
0af8b6e06b SDL1: get rid of nested with in meta 2024-09-04 16:40:51 -03:00
Anderson Torres
4ca394d256 SDL1: finalAttrs design pattern 2024-09-04 16:40:37 -03:00
Anderson Torres
2de9476bf8 SDL1: move rpath next to its usage 2024-09-04 16:40:29 -03:00
Anderson Torres
3108fc275f SDL1: rework input set 2024-09-04 16:40:21 -03:00
Anderson Torres
7159facf92 SDL1: migrate to by-name
And green-alias both SDL1 and SDL_classic to it.
2024-09-04 12:24:11 -03:00
Anderson Torres
ad2899f182 SDL_compat: rewrite
- finalAttrs design pattern
- get rid of nested with in meta
2024-09-04 12:23:01 -03:00
Anderson Torres
77b1cefe32 SDL_compat: migrate to by-name 2024-09-04 12:20:35 -03:00
Sandro
4db93f1fc2
Merge pull request #329809 from reckenrode/SDL_image-fixes 2024-08-23 15:38:58 +02:00
Alex Martens
d1183e440a sd-mux-ctrl: update homepage 2024-08-07 20:36:20 -07:00
Alex Martens
9e5890af88 sd-mux-ctrl: move to pkgs/by-name 2024-08-07 19:41:52 -07:00
Sigmanificient
6dd44107ac treewide: remove unused lib (and other) arguments 2024-07-26 11:18:09 +02:00
Randy Eckenrode
97d56a3365
SDL_image: fix build with clang 16
Use the correct function pointer types to avoid incompatible function pointer type assignment errors with clang 16. Also disable `webp-shared` like the other image formats already do and add it as an explicit dependency.
2024-07-24 23:51:35 -04:00
Anderson Torres
cea3c9fbe5 SDL2_image_2_6: migrate to by-name 2024-07-13 07:22:09 -03:00
Anderson Torres
108d37991f SDL2_image_2_0: migrate to by-name 2024-07-13 07:22:09 -03:00
Anderson Torres
a91743a5f3 SDL2_image: remove cpages from meta.maintainers
No activity since a long time.
2024-07-13 07:22:09 -03:00
Anderson Torres
1f8f3e7c40 SDL2_image: nixfmt 2024-07-13 07:22:09 -03:00
Anderson Torres
7f084a8532 SDL2_image: set strictDeps as true 2024-07-13 07:22:09 -03:00
Anderson Torres
093e3b60d3 SDL2_image: refactor
- internalize `darwin`
- reorder input set
  - new input: enableSdltest
- reorder buildInputs
- rewrite configureFlags
- get rid of nested with
- SDL team

Caution: can cause mass rebuilds.
2024-07-13 07:22:09 -03:00
Anderson Torres
c3fa9d6d0b SDL2_image: migrate to by-name 2024-07-13 07:22:09 -03:00
Anderson Torres
9ffac6dc44 treewide: remove vrthra from meta.maintainers [all orphans]
Tracking issue: https://github.com/NixOS/nixpkgs/issues/290642

Inactive since 2017
2024-07-07 12:20:32 -03: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
Anderson Torres
7ce57cada2 SDL2_gfx: remove cpages
See https://github.com/NixOS/nixpkgs/issues/290642.
2024-06-04 08:19:10 -03:00
Anderson Torres
8e271cf36d SDL_ttf: remove abbradar
See https://github.com/NixOS/nixpkgs/issues/290642.
2024-06-04 08:19:10 -03:00
Anderson Torres
d55409b930 SDL_mixer: remove lovek323
See https://github.com/NixOS/nixpkgs/issues/290642.
2024-06-04 08:19:10 -03:00
Anderson Torres
aca1dd0ea1 SDL_image: remove lovek323
See https://github.com/NixOS/nixpkgs/issues/290642.
2024-06-04 08:19:10 -03:00
Anderson Torres
03b72210cf SDL2_sound: internalize darwin 2024-06-04 08:19:09 -03:00
Anderson Torres
af3995746a SDL2_sound: migrate to by-name 2024-06-04 08:19:09 -03:00
Anderson Torres
7248ce50bb SDL2_Pango: refactor
- finalAttrs
- strictDeps
- splitting
- sdl team
2024-06-04 08:19:09 -03:00
Anderson Torres
0d85a83ce1 SDL2_gfx: refactor
- get rid of pname
- strictDeps
- split outputs
- sdl team
2024-06-04 08:19:09 -03:00
Anderson Torres
1c5d6dcbc4 SDL2_gfx: migrate to by-name 2024-06-04 08:19:09 -03:00
Anderson Torres
c6b17b3071 SDL2_ttf: refactor
- strictDeps
- use system harfbuzz and freetype instead of vendored
- sdl team
2024-06-04 08:19:09 -03:00
Anderson Torres
65f74c2ac1 SDL2_ttf: migrate to by-name 2024-06-04 08:19:09 -03:00
Anderson Torres
113627be08 SDL_net: refactor
- finalAttrs
- strictDeps
- sdl team
2024-06-04 08:19:09 -03:00
Anderson Torres
41724a3073 SDL_net: migrate to by-name 2024-06-04 08:19:09 -03:00
Anderson Torres
3682b4386b SDL_mixer: refactor
- finalAttrs
- strictDeps
- sdl team
- split outputs
2024-06-04 08:19:09 -03:00