steam-runtime: split by architectures
This commit is contained in:
parent
2f52c62684
commit
8b034964d1
|
@ -1,6 +1,10 @@
|
||||||
{ stdenv, fetchurl }:
|
{ 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}";
|
name = "steam-runtime-${version}";
|
||||||
version = "2014-04-15";
|
version = "2014-04-15";
|
||||||
|
|
||||||
|
@ -13,13 +17,25 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out
|
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; {
|
meta = with stdenv.lib; {
|
||||||
description = "The official runtime used by Steam";
|
description = "The official runtime used by Steam";
|
||||||
homepage = http://store.steampowered.com/;
|
homepage = https://github.com/ValveSoftware/steam-runtime;
|
||||||
license = licenses.unfreeRedistributable;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ hrdinka ];
|
maintainers = with maintainers; [ hrdinka ];
|
||||||
|
hydraPlatforms = [];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue