git.iko.soy/typeable/nixpkgs
on master help sign in
lib/sources.nix@commitIdFromGitRepo: parenthesize what should always have been

Fixes error: cannot coerce a partially applied built-in function to a string, at lib/sources.nix:59:32 I don't understand how this used to work, but doesn't work anymore?

commitf242b752fec061ec5afe6f1b3b5f948bded23e9a authorobadz <obadz-git@obadz.com> dateMon 8 Aug 2016, 11:43 (10 years ago) parent2d71df1
1 file changed+1−1
lib/sources.nix+1−1
lib/sources.nix+1−1
@@ -58,7 +58,7 @@ rec {
5858 else if lib.pathExists packedRefsName
5959 then
6060 let fileContent = readFile packedRefsName;
61− matchRef = match ".*\n([^\n ]*) " + file + "\n.*" fileContent;
61+ matchRef = match (".*\n([^\n ]*) " + file + "\n.*") fileContent;
6262 in if isNull matchRef
6363 then throw ("Could not find " + file + " in " + packedRefsName)
6464 else lib.head matchRef