aboutsummaryrefslogtreecommitdiff
path: root/pkgs/games/steam/runtime.nix
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2015-10-20 17:08:44 +0300
committerNikolay Amiantov <ab@fmap.me>2015-10-20 18:53:46 +0300
commiteae00fe68769672d1a861ef4a9dd4963e7d77fff (patch)
treefef3bd6234961c82c294671f1d1fa3f5508e4c7c /pkgs/games/steam/runtime.nix
parent18ddcd28473953bfe4f416f5c0882f2040280fb0 (diff)
steam-runtime: build using new Runtime build system
Diffstat (limited to 'pkgs/games/steam/runtime.nix')
-rw-r--r--pkgs/games/steam/runtime.nix25
1 files changed, 11 insertions, 14 deletions
diff --git a/pkgs/games/steam/runtime.nix b/pkgs/games/steam/runtime.nix
index 7e3e03b04e18..c4ca98f02683 100644
--- a/pkgs/games/steam/runtime.nix
+++ b/pkgs/games/steam/runtime.nix
@@ -1,23 +1,21 @@
-{ stdenv, fetchurl }:
+{ stdenv, fetchurl, writeText, python2, dpkg, binutils }:
let arch = if stdenv.system == "x86_64-linux" then "amd64"
else if stdenv.system == "i686-linux" then "i386"
else abort "Unsupported platform";
-in stdenv.mkDerivation rec {
- name = "steam-runtime-${version}";
- version = "2014-04-15";
+ input = builtins.getAttr arch (import ./runtime-generated.nix { inherit fetchurl; });
- phases = [ "unpackPhase" "installPhase" ];
+ inputFile = writeText "steam-runtime.json" (builtins.toJSON input);
- src = fetchurl {
- url = "http://media.steampowered.com/client/runtime/steam-runtime-release_${version}.tar.xz";
- sha256 = "0i6xp81rjbfn4664h4mmvw0xjwlwvdp6k7cc53jfjadcblw5cf99";
- };
+in stdenv.mkDerivation {
+ name = "steam-runtime-20151020";
+
+ nativeBuildInputs = [ python2 dpkg binutils ];
- installPhase = ''
+ buildCommand = ''
mkdir -p $out
- mv ${arch}/* $out/
+ python2 ${./build-runtime.py} -i ${inputFile} -r $out
'';
passthru = rec {
@@ -34,8 +32,7 @@ in stdenv.mkDerivation rec {
meta = with stdenv.lib; {
description = "The official runtime used by Steam";
homepage = https://github.com/ValveSoftware/steam-runtime;
- license = licenses.mit;
- maintainers = with maintainers; [ hrdinka ];
- hydraPlatforms = [];
+ license = licenses.unfreeRedistributable; # Includes NVIDIA CG toolkit
+ maintainers = with maintainers; [ hrdinka abbradar ];
};
}