2015-02-05 16:43:58 +01:00
|
|
|
{stdenv, fetchurl, traceDeps ? false}:
|
2013-09-13 23:58:59 +02:00
|
|
|
|
2014-11-03 18:00:49 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-05-30 19:26:53 +02:00
|
|
|
name = "${program}-original-${version}";
|
2014-11-03 18:00:49 +01:00
|
|
|
program = "steam";
|
|
|
|
version = "1.0.0.49";
|
2014-04-23 01:03:14 +02:00
|
|
|
|
2013-09-13 23:58:59 +02:00
|
|
|
src = fetchurl {
|
2014-11-03 18:00:49 +01:00
|
|
|
url = "http://repo.steampowered.com/steam/pool/steam/s/steam/${program}_${version}.tar.gz";
|
|
|
|
sha256 = "1c1gl5pwvb5gnnnqf5d9hpcjnfjjgmn4lgx8v0fbx1am5xf3p2gx";
|
2013-09-13 23:58:59 +02:00
|
|
|
};
|
2014-04-23 01:03:14 +02:00
|
|
|
|
2015-02-05 16:43:58 +01:00
|
|
|
traceLog = "/tmp/steam-trace-dependencies.log";
|
|
|
|
|
2013-09-13 23:58:59 +02:00
|
|
|
installPhase = ''
|
2014-08-08 17:28:57 +02:00
|
|
|
make DESTDIR=$out install
|
|
|
|
mv $out/usr/* $out #*/
|
|
|
|
rmdir $out/usr
|
2015-02-05 16:43:58 +01:00
|
|
|
|
|
|
|
rm $out/bin/steamdeps
|
|
|
|
${stdenv.lib.optionalString traceDeps ''
|
|
|
|
cat > $out/bin/steamdeps <<EOF
|
|
|
|
#! /bin/bash
|
|
|
|
echo \$1 >> ${traceLog}
|
|
|
|
cat \$1 >> ${traceLog}
|
|
|
|
echo >> ${traceLog}
|
|
|
|
EOF
|
|
|
|
chmod +x $out/bin/steamdeps
|
|
|
|
''}
|
2013-09-13 23:58:59 +02:00
|
|
|
'';
|
2014-04-23 01:03:14 +02:00
|
|
|
|
2015-03-09 13:33:49 +01:00
|
|
|
meta = with stdenv.lib; {
|
2013-09-13 23:58:59 +02:00
|
|
|
description = "A digital distribution platform";
|
|
|
|
homepage = http://store.steampowered.com/;
|
2015-03-09 13:33:49 +01:00
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ jagajaga ];
|
2013-09-13 23:58:59 +02:00
|
|
|
};
|
|
|
|
}
|