2017-10-15 23:58:04 +00:00
|
|
|
{ stdenv, steamArch, fetchurl, writeText, python2, dpkg, binutils }:
|
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
|
|
|
|
|
|
|
nativeBuildInputs = [ python2 dpkg binutils ];
|
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";
|
2015-08-23 15:12:16 +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
|
|
|
};
|
|
|
|
}
|