diff options
author | obadz <obadz-git@obadz.com> | 2016-08-08 11:43:39 +0100 |
---|---|---|
committer | obadz <obadz-git@obadz.com> | 2016-08-08 11:46:41 +0100 |
commit | f242b752fec061ec5afe6f1b3b5f948bded23e9a (patch) | |
tree | c2b0e69a7a0e245da227d6f42ed5a8e12b6fb05b /lib/sources.nix | |
parent | 2d71df18d3dcb1e70552308af781b8e7b5c0bb37 (diff) |
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?
Diffstat (limited to 'lib/sources.nix')
-rw-r--r-- | lib/sources.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sources.nix b/lib/sources.nix index 49dcd6d3dd2a7..156afaae5c98c 100644 --- a/lib/sources.nix +++ b/lib/sources.nix @@ -58,7 +58,7 @@ rec { else if lib.pathExists packedRefsName then let fileContent = readFile packedRefsName; - matchRef = match ".*\n([^\n ]*) " + file + "\n.*" fileContent; + matchRef = match (".*\n([^\n ]*) " + file + "\n.*") fileContent; in if isNull matchRef then throw ("Could not find " + file + " in " + packedRefsName) else lib.head matchRef |