Commit Graph

133 Commits

Author SHA1 Message Date
Artturin
63fa53d97c treewide: reformat files which need reformatting after
`treewide: replace stdenv.is with stdenv.hostPlatform.is`
2024-09-25 00:04:39 +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
Vladimír Čunát
36a13f9f21
staging-next 2024-08-23 (#336718) 2024-08-31 11:49:12 +02:00
Alyssa Ross
d4a72a3935 lib.platforms.mesaPlatforms: remove
Mesa is a package like any other.  There's no reason for it to be a
special case with its platforms listed in lib, because if other
packages want to refer to mesa's platforms, they can access the
platforms from the package meta like they would for any other package.
2024-08-31 10:28:31 +02:00
Martin Weinelt
ea5bb3f5df
Merge remote-tracking branch 'origin/staging-next' into staging 2024-08-09 02:19:33 +02:00
Martin Weinelt
1e25330d41
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
- pkgs/development/libraries/SDL2/default.nix
2024-08-09 02:18:56 +02:00
Peder Bergebakken Sundt
21835c891e SDL2: add some reverse deps to passthru.tests 2024-08-08 12:57:00 +02:00
Sergei Trofimovich
b2c2b557cd SDL2: switch maintainers from cpages to teams.sdl.members 2024-08-07 19:33:07 +01:00
Sergei Trofimovich
10c5c6b506 SDL2: 2.30.5 -> 2.30.6
Changes: https://github.com/libsdl-org/SDL/releases/tag/release-2.30.6
2024-08-03 21:33:18 +01:00
Sergei Trofimovich
53daf0d29f SDL2: apply formatting 2024-07-30 19:41:39 +01:00
Sergei Trofimovich
e8913e8f3e SDL2: 2.30.4 -> 2.30.5
Changes: https://github.com/libsdl-org/SDL/releases/tag/release-2.30.5
2024-07-04 09:38:25 +01:00
Sergei Trofimovich
24c728e237 SDL2: 2.30.3 -> 2.30.4
Changes: https://github.com/libsdl-org/SDL/releases/tag/release-2.30.4
2024-06-18 21:25:01 +01:00
Alyssa Ross
3df6bb2c85
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
	pkgs/applications/blockchains/polkadot/default.nix
2024-06-09 22:47:12 +01: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
Sergei Trofimovich
a086a6698c SDL2: 2.30.2 -> 2.30.3
Changes: https://github.com/libsdl-org/SDL/releases/tag/release-2.30.3
2024-05-03 22:01:51 +01:00
Weijia Wang
58b5b2748f treewide: fix version in changelog 2024-04-21 19:33:05 +02:00
Sergei Trofimovich
923ebca248 SDL2: 2.30.1 -> 2.30.2
Changes: https://github.com/libsdl-org/SDL/releases/tag/release-2.30.2
2024-04-02 09:17:13 +01:00
Martin Weinelt
3321e63b12
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
- pkgs/development/python-modules/sphinx-autobuild/default.nix
2024-03-19 04:00:32 +01: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
Sergei Trofimovich
74b1253a65 SDL2: 2.30.0 -> 2.30.1
Changes: https://github.com/libsdl-org/SDL/releases/tag/release-2.30.1
2024-03-06 21:45:39 +00:00
Sean Link
a2554b6dae SDL2: improve mingw support
Part of a larger effort to add mingw support for qtmultimedia.
ffmpeg will fail to compile without this change.
2024-02-26 21:57:33 +01:00
Sean Link
842148eb5b SDL2: run nixpkgs-fmt 2024-02-26 21:57:33 +01:00
Sergei Trofimovich
2f1b2150ef SDL2: 2.28.5 -> 2.30.0
Changes: https://github.com/libsdl-org/SDL/releases/tag/release-2.30.0
2024-02-03 11:40:41 +00:00
github-actions[bot]
991a07725b
Merge staging-next into staging 2023-11-17 12:01:30 +00:00
Adam Joseph
c7e0f6b905 treewide: s_targetPlatform_hostPlatform_ in non-compiler packages
stdenv.targetPlatform really shouldn't be used by software that
doesn't generate or manipulate binaries.  I reviewed all uses of
targetPlatform outside of pkgs/development/compilers and pkgs/stdenv
and replaced those which weren't involved in something which fits
these criteria.
2023-11-17 08:07:34 +00:00
Sergei Trofimovich
14bd32cbf1 SDL2: 2.28.4 -> 2.28.5
Changes: https://github.com/libsdl-org/SDL/releases/tag/release-2.28.5
2023-11-11 18:15:24 +00:00
Alyssa Ross
afabc4a15d
Merge remote-tracking branch 'origin/master' into HEAD
Conflicts:
	pkgs/development/libraries/SDL2/default.nix
2023-11-10 15:18:19 +01:00
sternenseemann
d32cb37277 sdl2: record provided pkg-config modules in meta
This is verified using testers.hasPkgConfigModules which leads to a
slight refactor of the expression.
2023-11-05 16:51:57 +01:00
Sergei Trofimovich
5660d0f73b SDL2: 2.28.3 -> 2.28.4
Changes: https://github.com/libsdl-org/SDL/releases/tag/release-2.28.4
2023-10-04 06:31:51 +01:00
K900
083e133f67 SDL2: 2.28.2 -> 2.28.3
Also add update script and switch to fetchFromGitHub (so the update script works)

Diff: https://github.com/libsdl-org/SDL/compare/release-2.28.2...release-2.28.3

Changelog: https://github.com/libsdl-org/SDL/releases/tag/release-2.28.3
2023-09-02 09:31:10 +03:00
Sergei Trofimovich
0c23400bf9 SDL2: 2.28.1 -> 2.28.2
Changes: https://github.com/libsdl-org/SDL/releases/tag/release-2.28.2
2023-08-12 07:32:05 +01:00
K900
42848722a9 SDL2: 2.28.0 -> 2.28.1
Changelog: https://github.com/libsdl-org/SDL/releases/tag/release-2.28.1
2023-07-12 13:26:11 +03:00
K900
ecef9a792c sdl2: 2.26.5 -> 2.28.0 2023-06-22 12:48:44 +03:00
Yureka
4062535a3e SDL2: exclude mesa dependency on darwin 2023-05-29 12:44:36 +02:00
Vladimír Čunát
de0b678023
Merge #226567: SDL2: 2.26.4 -> 2.26.5
...into staging
2023-04-26 16:04:49 +02:00
Vladimír Čunát
7fa4e34aaa
SDL2: add meta.changelog 2023-04-26 16:04:07 +02:00
K900
d7e04434ce SDL2: default drmSupport to false
Removes Mesa from a rebuild-heavy path
2023-04-20 15:50:10 +03:00
R. Ryantm
887afd3012 SDL2: 2.26.4 -> 2.26.5 2023-04-17 01:56:23 +00:00
Sergei Trofimovich
f460885694 SDL2: don't propagate headers-only packages via RUNPATH
On `nixpkgs` SDL2 explicitly bulds RUNPATHs from it's subset of build
inputs. As a result RUNPATH contains more than needed. This change
repomed from RUNPATH packages that don't contain libraries but contain
developer-only files:
- wayland-protocols: xml files to describe protocols
- xorgproto: header files for X11

The change moves them to buildInputs / propagatedBuildInputs.

Before the change closure size is:

    $ nix path-info -rsSh $(nix-build -A SDL2) | nl
    221  /nix/store/...-SDL2-2.26.4 2.5M 546.5M

After the change:

    $ nix path-info -rsSh $(nix-build -A SDL2) | nl
    219  /nix/store/...-SDL2-2.26.4 2.5M 544.4M
2023-04-09 09:52:16 +01:00
superherointj
20c9e1965a SDL2: remove superherointj as maintainer 2023-03-30 11:00:22 -03:00
github-actions[bot]
2003e6ba72
Merge staging-next into staging 2023-03-13 07:30:09 +00:00
Vladimír Čunát
2d51a0e8ad
Merge branch 'master' into staging-next 2023-03-13 08:25:10 +01:00
Nick Cao
892f0c472b
SDL2: remove unnecessary dependency on fcitx
SDL2 supports both fcitx 4 and fcitx 5 though the dbus interface,
and the dependency on fcitx headers has been removed in favor of
hardcoding the constants.

Reference: https://github.com/libsdl-org/SDL/issues/3653
2023-03-12 12:36:50 +08:00
superherointj
490e77ce0a SDL2: add superherointj as maintainer 2023-03-11 11:55:48 -03:00
superherointj
8e8be88067 SDL2: 2.26.3 -> 2.26.4
Release: https://github.com/libsdl-org/SDL/releases/tag/release-2.26.4
2023-03-11 11:53:28 -03:00
R. Ryantm
78649a67ab SDL2: 2.24.2 -> 2.26.3 2023-02-28 02:51:46 +00:00
Shawn8901
a59dda942c treewide: remove global with lib; statements in pkgs/development 2023-01-26 18:31:02 +01:00
Sandro Jäckel
4db7dc72d2 SDL2: 2.24.1 -> 2.24.2 2022-11-07 15:55:47 +01:00
Jan Solanti
89c92a9206 SDL2: 2.24.0 -> 2.24.1 2022-11-07 15:25:49 +01:00
PedroHLC ☭
169f01ddce
SDL2: fix post-install condition
Fixes ""stdenv-linux/setup: line 87: [: : integer expression expected""
2022-09-18 12:35:44 -03:00