diff options
author | Artturin <Artturin@artturin.com> | 2022-11-06 06:16:13 +0200 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2022-11-06 07:04:53 +0200 |
commit | b67ee6e861903abb04e9024d605dfc7b00922633 (patch) | |
tree | a641839d3519e21c9405edd30b6fa6274fe4f26f /lib | |
parent | 1f3ebb2bd1a353a42e8f833895c26d8415c7b791 (diff) |
lib/trivial: fix 'error: cannot decode virtual path '/nix/store/virtual0000000000000000000000005-source''
happens on lazy-trees branch of Nix (NixOS/nix#6530)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/trivial.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/trivial.nix b/lib/trivial.nix index 5d4fad8266bc9..8f2023caaf8e2 100644 --- a/lib/trivial.nix +++ b/lib/trivial.nix @@ -213,8 +213,8 @@ rec { # Default value to return if revision can not be determined default: let - revisionFile = "${toString ./..}/.git-revision"; - gitRepo = "${toString ./..}/.git"; + revisionFile = ./.. + "/.git-revision"; + gitRepo = ./.. + "/.git"; in if lib.pathIsGitRepo gitRepo then lib.commitIdFromGitRepo gitRepo else if lib.pathExists revisionFile then lib.fileContents revisionFile |