Commit Graph

51 Commits

Author SHA1 Message Date
Adam Joseph
cbc8aa437c treewide: use uncurried version of makeScopeWithSplicing 2023-08-14 02:51:10 +03:00
Silvan Mosberger
a0b8caf3bc
Revert "lib.customisation: uncurry makeScopeWithSplicing" 2023-07-28 23:04:09 +02:00
Artturin
3716ef19d8 lib.makeScopeWithSplicing: provide default for keep,extra
These are often unneeded by the user.
2023-07-28 17:41:01 +03:00
Adam Joseph
cb13669b00 lib.customisation: uncurry makeScopeWithSplicing
Deeply-curried functions are pretty error-prone in untyped languages
like Nix.  This is a particularly bad case because
`top-level/splice.nix` *also* declares a makeScopeWithSplicing, but
it takes *two fewer arguments*.

Let's switch to attrset-passing form, to provide some minimal level
of sanity-checking.
2023-07-27 21:31:59 -07:00
K900
48db1ea01d steamPackages: expose steam-fhsenv-without-steam
This is not unfree and thus can be built by Hydra.
2023-05-17 10:39:34 +03:00
Weijia Wang
db9eda0945 steam: fix error message on unsupported arch 2023-04-22 23:53:39 +03:00
Atemu
f63a12f296 tree-wide: buildFHSUserEnv -> buildFHSEnv 2023-04-16 10:15:13 +02:00
Sandro Jäckel
a62d444697
steam-small: init
A steam variant without game specific libraries to have a smaller
footprint on systems where people don't need or want the full blown fhs.
2023-02-18 17:34:49 +01:00
Artturin
58fa78077c treewide: use splicing convenience functions 2022-12-25 14:05:03 +02:00
Artturin
4b9d0f3420 steamPackages: fix attribute 'steamPackages' missing while cross eval
there's prior art for doing this
2022-08-14 00:27:42 +03:00
Joel
a1ca3247f1
steam-fonts: remove
The source now returns a 404 and Steam no longer needs these fonts.
2022-02-26 14:51:55 +10:00
Dusk Banks
ab054f8fdb steamPackages: make customisable
Keep in mind the note in `lib.makeScopeWithSplicing`'s source:

    # N.B. the other stages of the package set spliced in are *not*
    # overridden.

To globally override `pkgs.steamPackages`, overlay `pkgs` like:

    final: prev: { steamPackages = steamPackages.overrideScope …; }
2021-11-16 08:40:10 -08:00
Atemu
b7c09b50ff steam: use buildFHSUserEnvBubblewrap
Fixes #92798
2020-08-17 08:49:39 +02:00
Tad Fisher
0b2b7b2d53 steamcmd: init at 20180104 2018-09-08 13:39:32 -07:00
John Ericson
2c2f1e37d4 reewide: Purge all uses stdenv.system and top-level system
It is deprecated and will be removed after 18.09.
2018-08-30 17:20:32 -04:00
Nikolay Amiantov
9c8137ca81 steam: improvements for native runtime
* Update dependencies using steam-native-runtime from Arch Linux as a
  reference.
* Remove native-only Steam Runtime, just use installed libraries
  instead.
* Mark native-only Steam as broken (due to segfault inside D-Bus). Seems it was
  already broken for a long time. Doesn't apply to steam-run.
* Some cleanups for chrootenv.
2018-03-16 02:59:07 +03:00
Vladimír Čunát
3a110ea3f9
treewide platform checks: abort -> throw
They aren't meant to be critical (uncatchable) errors.
Tested with nix-env + checkMeta:
[ "x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" ]
2017-12-12 18:08:10 -05:00
Nikolay Amiantov
38ffe0e1f6 steam-run-native: init
Refactor Steam so that native steam-run can be built as a free package and
expose it so that Hydra builds needed i686 packages.
2017-10-16 21:42:30 +03:00
Nikolay Amiantov
192e0c7141 steam-run: add derivation 2016-04-03 16:10:14 +03:00
Nikolay Amiantov
5bbf10409e steam: actually propagate flags to the runtime, now from chrootenv wrapper
Example: instead of

(steamPackages.override { newStdcpp = true; }).steam-chrootenv

(which wasn't working anyway) you now do just:

steam.override { newStdcpp = true; }
2016-01-27 00:58:23 +03:00
Nikolay Amiantov
f4d71737a8 steam: propagate runtime-wrapped flags for more convenient overrides 2016-01-15 15:01:55 +03:00
Nikolay Amiantov
2286c1894d steam-fonts: init at 1 2015-10-15 15:17:13 +03:00
Nikolay Amiantov
6c9ee645ec steam: add steamPackages namespace, build our own runtime 2015-10-11 17:57:31 +03:00
Aristid Breitkreuz
3c09ff6d15 prevent accidentally installing unwrapped steam 2015-05-30 19:27:24 +02:00
Nikolay Amiantov
95cd118d4f steam: refactor meta 2015-03-09 17:29:43 +03:00
Nikolay Amiantov
69d19d4283 steam: replace steamdeps 2015-02-05 18:43:58 +03:00
Arseniy Seroka
51abbf7204 steam: update 1.0.0.48 -> 1.0.0.49 2014-11-03 20:00:49 +03:00
Sander van der Burg
23d5fd2e2f Fix steam package 2014-09-06 00:30:10 +02:00
Christoph Hrdinka
c5f51039f4 steam: fix steam on x86_64 2014-09-06 00:25:48 +02:00
Georges Dubus
5df24fadaa steam: updated to 1.0.0.48 2014-08-08 17:28:57 +02:00
Mateusz Kowalczyk
7a45996233 Turn some license strings into lib.licenses values 2014-07-28 11:31:14 +02:00
third3ye
e5bf7af90a The folder $url/steam/archive seems to be empty...
Changed the URLs to the packages over to the steam folder inside <code>pool/steam/s/steam</code>. If the archive folder has been repopulated the next 24hrs ignore this.
2014-06-20 01:54:16 +00:00
Sander van der Burg
28d8e93871 My attempt to get Steam working in NixOS. It uses a function called buildFHSChrootEnv {} that composed chroot environments. In such a chroot environment, I could run Steam without much problem 2013-09-13 23:58:59 +02:00
Evgeny Egorochkin
37996253e6 Steam: fix and update to 1.0.0.39 2013-08-10 06:08:19 +03:00
Carles Pagès
5885cf1286 steam: add flashplayer plugin support.
The videos work, but there is a problem with sound:
ALSA lib dlmisc.c:236:(snd1_dlobj_cache_get) Cannot open shared library
/nix/store/9z51hr9l19vdhgmqd60jwwrg6ny5md2d-alsa-plugins-1.0.26/lib/alsa-lib/libasound_module_pcm_pulse.so

It tries to open a 64bit plugin, which obviously fails. I think this depends on
/etc/asound.conf, but I'm not sure how to fix it.

Regardless of the problem, in one computer I tried the sound works but other
apps cannot output sound. In another, the sound doesn't work and other apps
continue working as normal.
2013-08-10 06:08:18 +03:00
Carles Pagès
4d853ae94f steam: revert adding amd64 version.
It turns out that the .deb only contains the changelog and some other docs.
Revert back to using the i686 version, but keep the double url for the future.
2013-08-10 06:08:18 +03:00
Carles Pagès
97ea8d61e6 steam: add amd64 version and point url to fix version (as suggested by aristid).
Valve has a repository with fixed version packages, so use that instead of the
steam.deb I was using. They also have amd64 packages there.
2013-08-10 06:08:18 +03:00
Carles Pagès
3f4557b0eb steam: update to 1.0.0.28 2013-08-10 06:08:18 +03:00
Carles Pagès
bd44348baf steam: create some missing symlinks in the script.
In the original script it says they are temporary, but without those simlinks
Osmos and others fail to start with SteamAPI_Init() failed.
2013-08-10 06:08:18 +03:00
Carles Pagès
87c5a418ec steam: create proper symlinks in $HOME/.steam 2013-08-10 06:08:17 +03:00
Carles Pagès
a249fa67d9 steam: add libXdmcp to dependencies.
I must have been blind. libXdmcp is in nixpkgs, contrary to what I said.
2013-08-10 06:08:17 +03:00
Carles Pagès
dc10fabb2f steam: update to 1.0.0.27
It needed some more sed'ing and more deps. It's still not working as I seem to
need libXdmcp which is not in nixpkgs.
2013-08-10 06:08:17 +03:00
Carles Pagès
f42cece8f5 steam: update to 1.0.0.21.
I also updated the patches for the bootsrapper script and fixed a typo, but
didn't test anything.
2013-08-10 06:08:17 +03:00
Carles Pagès
094c0662e8 steam: add mesa to library path.
Mesa is needed for Superbrothers: S&S EP, which links to libGLU.
2013-08-10 06:08:17 +03:00
Carles Pagès
10f722dc04 steam: workaround segfault at startup.
I don't know why, if I call ld-linux.so.2 to launch the game, it segfaults, so
I renamed it to ld.so.
2013-08-10 06:08:16 +03:00
Carles Pagès
c75cccc469 steam: update to 1.0.0.18.
I forgot in the previous commit to update the version as I had changed the
tarball hash.

I also modified a bit the launcher script, since xz should only be needed by
the installer.
2013-08-10 06:08:16 +03:00
Carles Pagès
b07300f2ef steam: bypass valve's bootstrapper.
Since there is no way to modify either steam.sh or the steam binary as they are
hash checked, I took the approach of bypassing steam.sh and create a script
that does its job.

For now it segfaults, but when I try to run under strace, it works perfectly.
Need to check this.
2013-08-10 06:08:16 +03:00
Carles Pagès
dad0ed4eaa steam: add all the missing dependancies.
Calling their steam script still segfaults, but I managed to run it from the
shell with all these deps in the lib path.
2013-08-10 06:08:16 +03:00
Carles Pagès
ee6129350e steam: add glibc215 to the wrapper. 2013-08-10 06:08:16 +03:00
Carles Pagès
12a0d83855 Steam: add patch for user stuff and lib paths to wrapProgram.
The binaries that get copied to $HOME need patchelf to run, and after that I
need all the runtime libs in the library path. Still not working as I need
glibc2.15.
2013-08-10 06:08:15 +03:00