nixpkgs/pkgs/games/steam/runtime.nix

24 lines
744 B
Nix
Raw Normal View History

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