* Don't use toString here - it causes the path of source file

(e.g. /home/foo/nixpkgs/.../glx-patch-0.6.2.patch) to be
  substituted, which is clearly impure.  I noticed this because I was
  getting different derivations for Compiz when running as root
  vs. another user.

svn path=/nixpkgs/trunk/; revision=12903
This commit is contained in:
Eelco Dolstra 2008-09-23 00:52:05 +00:00
parent bf65ff9ec6
commit 49de4abefa

View file

@ -287,7 +287,7 @@ args: with args; with stringsWithDeps; with lib;
patches = getAttr ["patches"] [] args;
toPatchCommand = s: "cat ${toString s} | patch ${toString patchFlags}";
toPatchCommand = s: "cat ${s} | patch ${toString patchFlags}";
doPatch = FullDepEntry (concatStringsSep ";"
(map toPatchCommand patches)