mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
38ffe0e1f6
Refactor Steam so that native steam-run can be built as a free package and expose it so that Hydra builds needed i686 packages.
24 lines
742 B
Nix
24 lines
742 B
Nix
{ stdenv, steamArch, fetchurl, writeText, python2, dpkg, binutils }:
|
|
|
|
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 binutils ];
|
|
|
|
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 ];
|
|
};
|
|
}
|