mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
steam: replace steamdeps
This commit is contained in:
parent
b58dc94899
commit
69d19d4283
1 changed files with 14 additions and 1 deletions
|
@ -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 a new issue