nixpkgs-suyu/pkgs/games/steam/runtime.nix
2020-04-10 17:54:53 +01:00

23 lines
744 B
Nix

{ stdenv, steamArch, fetchurl, writeText, python2, dpkg }:
let input = builtins.getAttr steamArch (import ./runtime-generated.nix { inherit fetchurl; });
inputFile = writeText "steam-runtime.json" (builtins.toJSON input);
in stdenv.mkDerivation {
name = "steam-runtime-2016-08-13";
nativeBuildInputs = [ python2 dpkg stdenv.cc.bintools ];
buildCommand = ''
mkdir -p $out
python2 ${./build-runtime.py} -i ${inputFile} -r $out
'';
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 ];
};
}