nixpkgs/pkgs/games/steam/runtime.nix

27 lines
793 B
Nix
Raw Normal View History

{ stdenv, fetchurl }:
2015-08-06 18:06:38 +01:00
stdenv.mkDerivation rec {
2020-05-08 08:32:02 +01:00
name = "steam-runtime";
# from https://repo.steampowered.com/steamrt-images-scout/snapshots/
version = "0.20200604.0";
2015-08-06 18:06:38 +01:00
src = fetchurl {
url = "https://repo.steampowered.com/steamrt-images-scout/snapshots/${version}/steam-runtime.tar.xz";
sha256 = "04ficg3lnf6ijwkj08094vgcsskfncnlhk61v2csls3wfwvkrmhv";
name = "scout-runtime-${version}.tar.gz";
};
2015-08-06 18:06:38 +01:00
buildCommand = ''
2015-08-06 18:06:38 +01:00
mkdir -p $out
tar -C $out --strip=1 -x -f $src
2015-08-06 18:06:38 +01:00
'';
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 ];
2015-08-06 18:06:38 +01:00
};
}