summary refs log tree commit diff
path: root/pkgs/games/steam
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2015-08-23 18:12:16 +0300
committerNikolay Amiantov <ab@fmap.me>2015-10-11 17:57:31 +0300
commit8b034964d1e8aca285f601680634130fc954070c (patch)
tree215885db98c5fae5232afc853e6a84b69ebcc820 /pkgs/games/steam
parent2f52c62684644a83c185ee662f8e7c2876089c2c (diff)
downloadnixlib-8b034964d1e8aca285f601680634130fc954070c.tar
nixlib-8b034964d1e8aca285f601680634130fc954070c.tar.gz
nixlib-8b034964d1e8aca285f601680634130fc954070c.tar.bz2
nixlib-8b034964d1e8aca285f601680634130fc954070c.tar.lz
nixlib-8b034964d1e8aca285f601680634130fc954070c.tar.xz
nixlib-8b034964d1e8aca285f601680634130fc954070c.tar.zst
nixlib-8b034964d1e8aca285f601680634130fc954070c.zip
steam-runtime: split by architectures
Diffstat (limited to 'pkgs/games/steam')
-rw-r--r--pkgs/games/steam/runtime.nix24
1 files changed, 20 insertions, 4 deletions
diff --git a/pkgs/games/steam/runtime.nix b/pkgs/games/steam/runtime.nix
index 9c6b07fa1245..7e3e03b04e18 100644
--- a/pkgs/games/steam/runtime.nix
+++ b/pkgs/games/steam/runtime.nix
@@ -1,6 +1,10 @@
 { stdenv, fetchurl }:
 
-stdenv.mkDerivation rec {
+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";
 
@@ -13,13 +17,25 @@ stdenv.mkDerivation rec {
 
   installPhase = ''
     mkdir -p $out
-    mv * $out/
+    mv ${arch}/* $out/
   '';
 
+  passthru = rec {
+    inherit arch;
+
+    gnuArch = if arch == "amd64" then "x86_64-linux-gnu"
+              else if arch == "i386" then "i386-linux-gnu"
+              else abort "Unsupported architecture";
+
+    libs = [ "lib/${gnuArch}" "lib" "usr/lib/${gnuArch}" "usr/lib" ];
+    bins = [ "bin" "usr/bin" ];
+  };
+
   meta = with stdenv.lib; {
     description = "The official runtime used by Steam";
-    homepage = http://store.steampowered.com/;
-    license = licenses.unfreeRedistributable;
+    homepage = https://github.com/ValveSoftware/steam-runtime;
+    license = licenses.mit;
     maintainers = with maintainers; [ hrdinka ];
+    hydraPlatforms = [];
   };
 }