From 49de4abefa4e5c1b086c030fc2bf8c421fa0de66 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 23 Sep 2008 00:52:05 +0000 Subject: [PATCH] * 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 --- pkgs/top-level/builder-defs.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)