mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
727e7d8039
In my previous commit (593c28b
) I used the wrong upstream artifact for
the runtime. After reading the documentation in the
ValveSoftware/steam-runtime repo, I now know that the steam-runtime
tarball is what I actually wanted.
I also used 'diff' to compare the various artifacts with the old runtime
this package used before, and the steam-runtime one is certainly the
closest.
Most importantly, switching to the right steam-runtime package
reportedly fixes issues for other users (fixes #90229).
This also entirely removes the amd64/i386 split from runtime.nix because
the upstream package bundles both together, and if that's how upstream
wants to distribute this, it seems best to follow their lead.
27 lines
793 B
Nix
27 lines
793 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "steam-runtime";
|
|
# from https://repo.steampowered.com/steamrt-images-scout/snapshots/
|
|
version = "0.20200417.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://repo.steampowered.com/steamrt-images-scout/snapshots/${version}/steam-runtime.tar.xz";
|
|
sha256 = "0d4dfl6i31i8187wj8rr9yvmrg32bx96bsgs2ya21b00czf070sy";
|
|
name = "scout-runtime-${version}.tar.gz";
|
|
};
|
|
|
|
buildCommand = ''
|
|
mkdir -p $out
|
|
tar -C $out --strip=1 -x -f $src
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "The official runtime used by Steam";
|
|
homepage = "https://github.com/ValveSoftware/steam-runtime";
|
|
license = licenses.unfreeRedistributable; # Includes NVIDIA CG toolkit
|
|
maintainers = with maintainers; [ hrdinka abbradar ];
|
|
};
|
|
}
|