Merge pull request #6176 from abbradar/steamdeps
steam: replace steamdeps
This commit is contained in:
commit
b5e6950718
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user