mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-21 20:58:41 +03:00
* 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:
parent
bf65ff9ec6
commit
49de4abefa
@ -287,7 +287,7 @@ args: with args; with stringsWithDeps; with lib;
|
|||||||
|
|
||||||
patches = getAttr ["patches"] [] args;
|
patches = getAttr ["patches"] [] args;
|
||||||
|
|
||||||
toPatchCommand = s: "cat ${toString s} | patch ${toString patchFlags}";
|
toPatchCommand = s: "cat ${s} | patch ${toString patchFlags}";
|
||||||
|
|
||||||
doPatch = FullDepEntry (concatStringsSep ";"
|
doPatch = FullDepEntry (concatStringsSep ";"
|
||||||
(map toPatchCommand patches)
|
(map toPatchCommand patches)
|
||||||
|
Loading…
Reference in New Issue
Block a user