summary refs log tree commit diff
path: root/lib/sources.nix
diff options
context:
space:
mode:
authorobadz <obadz-git@obadz.com>2016-08-08 11:43:39 +0100
committerobadz <obadz-git@obadz.com>2016-08-08 11:46:41 +0100
commitf242b752fec061ec5afe6f1b3b5f948bded23e9a (patch)
treec2b0e69a7a0e245da227d6f42ed5a8e12b6fb05b /lib/sources.nix
parent2d71df18d3dcb1e70552308af781b8e7b5c0bb37 (diff)
downloadnixpkgs-f242b752fec061ec5afe6f1b3b5f948bded23e9a.tar
nixpkgs-f242b752fec061ec5afe6f1b3b5f948bded23e9a.tar.gz
nixpkgs-f242b752fec061ec5afe6f1b3b5f948bded23e9a.tar.bz2
nixpkgs-f242b752fec061ec5afe6f1b3b5f948bded23e9a.tar.lz
nixpkgs-f242b752fec061ec5afe6f1b3b5f948bded23e9a.tar.xz
nixpkgs-f242b752fec061ec5afe6f1b3b5f948bded23e9a.tar.zst
nixpkgs-f242b752fec061ec5afe6f1b3b5f948bded23e9a.zip
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.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sources.nix b/lib/sources.nix
index 49dcd6d3dd2..156afaae5c9 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