steam: replace steamdeps

This commit is contained in:
Nikolay Amiantov 2015-02-05 18:43:58 +03:00
parent b58dc94899
commit 69d19d4283

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl}:
{stdenv, fetchurl, traceDeps ? false}:
stdenv.mkDerivation rec {
name = "${program}-${version}";
@ -10,10 +10,23 @@ stdenv.mkDerivation rec {
sha256 = "1c1gl5pwvb5gnnnqf5d9hpcjnfjjgmn4lgx8v0fbx1am5xf3p2gx";
};
traceLog = "/tmp/steam-trace-dependencies.log";
installPhase = ''
make DESTDIR=$out install
mv $out/usr/* $out #*/
rmdir $out/usr
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
''}
'';
meta = {