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