From 69d19d4283e231ce1619bcc0578e4d949e2a211a Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Thu, 5 Feb 2015 18:43:58 +0300 Subject: [PATCH] steam: replace steamdeps --- pkgs/games/steam/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pkgs/games/steam/default.nix b/pkgs/games/steam/default.nix index 41742da6b4ec..a687270bfc9c 100644 --- a/pkgs/games/steam/default.nix +++ b/pkgs/games/steam/default.nix @@ -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 <> ${traceLog} + cat \$1 >> ${traceLog} + echo >> ${traceLog} + EOF + chmod +x $out/bin/steamdeps + ''} ''; meta = {