summary refs log tree commit diff
path: root/pkgs/top-level/builder-defs.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2008-09-23 00:52:05 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2008-09-23 00:52:05 +0000
commit49de4abefa4e5c1b086c030fc2bf8c421fa0de66 (patch)
tree350ed0f929f5f774a0fc912b37102736e7c7ee39 /pkgs/top-level/builder-defs.nix
parentbf65ff9ec60ecb1fa3ff603680c1091b976c807a (diff)
downloadnixlib-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.nix2
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)