nixpkgs/pkgs/games/steam/runtime.nix

24 lines
742 B
Nix
Raw Normal View History

{ stdenv, steamArch, fetchurl, writeText, python2, dpkg, binutils }:
2015-08-06 17:06:38 +00:00
let input = builtins.getAttr steamArch (import ./runtime-generated.nix { inherit fetchurl; });
2015-08-06 17:06:38 +00:00
inputFile = writeText "steam-runtime.json" (builtins.toJSON input);
2015-08-06 17:06:38 +00:00
in stdenv.mkDerivation {
name = "steam-runtime-2016-08-13";
nativeBuildInputs = [ python2 dpkg binutils ];
2015-08-06 17:06:38 +00:00
buildCommand = ''
2015-08-06 17:06:38 +00:00
mkdir -p $out
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;
license = licenses.unfreeRedistributable; # Includes NVIDIA CG toolkit
maintainers = with maintainers; [ hrdinka abbradar ];
2015-08-06 17:06:38 +00:00
};
}