1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/games/steam/runtime.nix

24 lines
742 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";
2015-08-23 16:12:16 +01:00
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
};
}