diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2008-09-23 00:52:05 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2008-09-23 00:52:05 +0000 |
commit | 49de4abefa4e5c1b086c030fc2bf8c421fa0de66 (patch) | |
tree | 350ed0f929f5f774a0fc912b37102736e7c7ee39 /pkgs/top-level/builder-defs.nix | |
parent | bf65ff9ec60ecb1fa3ff603680c1091b976c807a (diff) | |
download | nixlib-49de4abefa4e5c1b086c030fc2bf8c421fa0de66.tar nixlib-49de4abefa4e5c1b086c030fc2bf8c421fa0de66.tar.gz nixlib-49de4abefa4e5c1b086c030fc2bf8c421fa0de66.tar.bz2 nixlib-49de4abefa4e5c1b086c030fc2bf8c421fa0de66.tar.lz nixlib-49de4abefa4e5c1b086c030fc2bf8c421fa0de66.tar.xz nixlib-49de4abefa4e5c1b086c030fc2bf8c421fa0de66.tar.zst nixlib-49de4abefa4e5c1b086c030fc2bf8c421fa0de66.zip |
* 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
Diffstat (limited to 'pkgs/top-level/builder-defs.nix')
-rw-r--r-- | pkgs/top-level/builder-defs.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/top-level/builder-defs.nix b/pkgs/top-level/builder-defs.nix index e3c27d072120..ea6914eddcb7 100644 --- a/pkgs/top-level/builder-defs.nix +++ b/pkgs/top-level/builder-defs.nix @@ -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) |