2017-10-10 23:01:42 +00:00
|
|
|
{ stdenv, steamArch, fetchurl, writeText, python2, dpkg }:
|
2015-08-06 17:06:38 +00:00
|
|
|
|
2017-10-15 23:58:04 +00:00
|
|
|
let input = builtins.getAttr steamArch (import ./runtime-generated.nix { inherit fetchurl; });
|
2015-08-06 17:06:38 +00:00
|
|
|
|
2015-10-20 14:08:44 +00:00
|
|
|
inputFile = writeText "steam-runtime.json" (builtins.toJSON input);
|
2015-08-06 17:06:38 +00:00
|
|
|
|
2015-10-20 14:08:44 +00:00
|
|
|
in stdenv.mkDerivation {
|
2016-08-13 00:14:45 +00:00
|
|
|
name = "steam-runtime-2016-08-13";
|
2015-10-20 14:08:44 +00:00
|
|
|
|
2017-10-10 23:01:42 +00:00
|
|
|
nativeBuildInputs = [ python2 dpkg stdenv.cc.bintools ];
|
2015-08-06 17:06:38 +00:00
|
|
|
|
2015-10-20 14:08:44 +00:00
|
|
|
buildCommand = ''
|
2015-08-06 17:06:38 +00:00
|
|
|
mkdir -p $out
|
2015-10-20 14:08:44 +00:00
|
|
|
python2 ${./build-runtime.py} -i ${inputFile} -r $out
|
2015-08-06 17:06:38 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "The official runtime used by Steam";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/ValveSoftware/steam-runtime";
|
2015-10-20 14:08:44 +00:00
|
|
|
license = licenses.unfreeRedistributable; # Includes NVIDIA CG toolkit
|
|
|
|
maintainers = with maintainers; [ hrdinka abbradar ];
|
2015-08-06 17:06:38 +00:00
|
|
|
};
|
|
|
|
}
|