Commit Graph

350 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
Pol Dellaiera
aacd442471
steam: fixed "/etc/NIXOS" bind failing (#343772) 2024-09-22 22:15:49 +02:00
mksafavi
23f8ab036c steam: fixed "/etc/NIXOS" bind failing 2024-09-22 21:24:16 +03:30
Aidan Gauland
425fa5a710
steamPackages.steam: 1.0.0.74 -> 1.0.0.81 2024-09-22 10:25:19 +12:00
Aidan Gauland
2af6e069b3
steamPackages.steam: use hash instead of sha256 attr 2024-09-22 10:22:15 +12:00
Aidan Gauland
1bdf3d55ce
steamPackages.steam: add update script 2024-09-22 10:18:34 +12:00
Aidan Gauland
e6262e0ced
steamPackages.steam: convert to use finalAttrs 2024-09-22 10:16:18 +12:00
Atemu
fa09c7cca3
steam-run: make free and create version without steam (#334773) 2024-09-19 15:09:28 +02:00
Rick van Schijndel
dd304567cd
steam: fix bootstrap tarball with non-default steamroot (#303787) 2024-09-09 22:35:22 +02:00
Fabián Heredia Montiel
e6aa2e950a steam: drop gnome2.GConf dependency
GConf depends on ORBit2 which no longer compiles on https://github.com/NixOS/nixpkgs/pull/340612

ORBit2 / GConf are EOL/Archived:

- https://gitlab.gnome.org/Archive/orbit2 (last commit on main branch 8 years ago)
- https://gitlab.gnome.org/Archive/gconf (last commit on main branch 8 years ago)
2024-09-09 08:04:26 -06:00
K900
15fc16d6c4 steam/fhsenv: use normal curl
The Steam Runtime can handle any curl version:
https://gitlab.steamos.cloud/steamrt/steam-runtime-tools/-/blob/main/libcurl-compat/README.md?ref_type=heads

And nix-built applications run from Steam will start exploding on this after staging-next
because we're finally building our curl with versioned symbols.
2024-09-09 10:55:25 +03:00
Sandro Jäckel
d50e23f0a4
glxinfo: replace with mesa-demos 2024-08-28 14:38:12 +02:00
eriedaberrie
25fcab1554 steam: fix bootstrap tarball with non-default steamroot
This removes the hardcoded Steam root in the bootstrap fixer, which lets it work
even if the user has moved their Steam root to somewhere other than the default
location.
2024-08-14 23:54:34 -07:00
Zitrone
c2699a996a
steam-run: mark as free (only the dependencies are unfree) 2024-08-15 05:59:43 +02:00
Sandro Jäckel
dc8cfc565e
steam: use 32bit compatible ldd 2024-08-06 11:33:05 +02:00
Sandro Jäckel
ca0c4a6060
steam: drop game specific libraries now duplicated with steam own 2024-08-06 11:33:05 +02:00
Sandro Jäckel
7f972523f3
steam: fix 32bit driver check
- /host/etc/NIXOS only existed in the chroot
- glxinfo does not write a proper error code on errors 🤦
2024-08-06 11:32:06 +02:00
Martin Weinelt
7b8429bbc4
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
- pkgs/development/python-modules/jaxtyping/default.nix
2024-07-02 12:08:49 +02:00
Jan Tojnar
b69ed4249d zenity: Move from gnome scope to top-level
It is widely used outside gnome, not much inside.
2024-07-01 08:26:47 +02:00
github-actions[bot]
08b5c3c46a
Merge master into staging-next 2024-06-25 18:01:20 +00:00
Paul Meyer
fbe8538aa1 treewide: remove jonringer as package maintainer
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
2024-06-25 09:16:56 +02:00
Emily
fbda1dbfd6 treewide: replace freeglut with libglut
Allow the macOS GLUT framework to be used automatically in many
cases. Packages that specifically search for freeglut or require its
additional APIs should still explicitly depend on it.

Deliberately skip the Haskell package set, which is mostly
automatically generated, and mupdf, which has its own fork of freeglut.
2024-06-22 18:06:51 +01:00
K900
20b7b4f619
Merge pull request #320228 from K900/opengl-cleanups
treewide: big opengl cleanups
2024-06-20 12:37:59 +03:00
Atemu
cb0dbbfa3b
Merge pull request #293540 from r-ryantm/auto-update/steamPackages.steam-runtime
steamPackages.steam-runtime: 0.20231127.68515 -> 0.20240415.84615
2024-06-17 20:29:18 +02:00
K900
98cef4c273 treewide: big opengl cleanup
- rename hardware.opengl to hardware.graphics
- remove hardware.opengl.driSupport, which does nothing
- remove hardware.opengl.setLdLibraryPath, which should never be done
- rename hardware.opengl.driSupport32Bit to hardware.graphics.enable32Bit
- lost of small docs / formatting cleanups
2024-06-16 14:11:33 +03:00
Alexis Hildebrandt
f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +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
diniamo
eb042ccd8d
steamPackages.steamcmd: add mainProgram, fix fetch url to use an archive (#312753)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2024-06-05 01:35:39 +02:00
K900
c75cffb303 steam: fix comment, add gamescope/xwayland dependencies 2024-05-22 17:42:18 +03:00
R. Ryantm
e4d99c8236 steamPackages.steam-runtime: 0.20231127.68515 -> 0.20240415.84615 2024-05-10 23:05:59 +00:00
John Titor
cfe7930b94
steamPackages.steam-runtime: move to finalAttrs
explicitly use lib where needed
2024-04-27 18:51:17 +05:30
Guanran Wang
231bb74f99
steamPackages.steam-fhsenv: fix IME issues 2024-04-12 17:36:35 +08: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
Atemu
c67a030aa2 steam: passthru steam's args
This makes it possible to introspect steam-specific arguments such as extraEnv.
2024-03-16 17:59:27 +01:00
Philip Taron
a0e85781a7
steam: make the fhsenv for mesa only have elfutils 2024-02-28 21:01:31 -08:00
R. Ryantm
b581ad2cf1 steamPackages.steam-runtime: 0.20220601.1 -> 0.20231127.68515 2024-01-12 14:29:09 +00:00
Jeff Huffman
25c947b3fc
steam: make privateTmp overrideable 2023-12-21 12:11:35 -05:00
Jeff Huffman
aa9d4729cb steam: unset GIO_EXTRA_MODULES to supress errors 2023-12-13 23:33:05 -08:00
Jeff Huffman
c3a429feac steam: add glibc.bin to FHS for ldconfig 2023-12-13 23:33:05 -08:00
Jeff Huffman
195248b6c1 buildFHSEnv, steam: isolate steam's /tmp from host
Works around steam's misbehavior: https://github.com/ValveSoftware/steam-for-linux/issues/9121
2023-12-13 23:33:05 -08:00
Adam Joseph
db04185bc9 steam.runtime-wrapped: use throw, not abort 2023-11-29 09:44:43 +01:00
Artturi
839563108f
Merge pull request #267957 from pbsds/nix-update-main-program 2023-11-17 00:36:48 +02:00
Peder Bergebakken Sundt
dc2ce0af94 nix-update: set meta.mainProgram 2023-11-16 21:42:13 +01:00
Fabián Heredia Montiel
884449105e Merge remote-tracking branch 'origin/master' into staging-next 2023-11-13 14:31:51 -06:00
Peder Bergebakken Sundt
db86bc5c4e
Merge pull request #267112 from amarshall/steam-run-mainprogram
steam-run: Set meta.mainProgram
2023-11-13 01:47:18 +02:00
Andrew Marshall
fe94af355c steam-run: Set meta.mainProgram
Otherwise it is inheriting "steam" from `steam.meta`.
2023-11-12 16:56:38 -05:00
github-actions[bot]
b23f12e076
Merge master into staging-next 2023-11-06 00:02:12 +00:00
K900
e437fe253b
Merge pull request #262184 from aidalgol/missing-game-fhsenv-libs
Add libunwind to Heroic and Steam FHS envs
2023-11-05 21:54:40 +03:00
github-actions[bot]
682b6995b4
Merge staging-next into staging 2023-10-21 12:01:45 +00:00
K900
700044610f steam: allow setting extraBwrapArgs, remove unshare* options matching defaults 2023-10-21 00:55:54 +03:00