diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2022-11-05 21:57:23 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-05 21:57:23 -0300 |
commit | 4b59590ac5326b82581e96f4eb1ff7417c932387 (patch) | |
tree | 47d234770107b9c1b5b66851e43a24a25265764b /lib/trivial.nix | |
parent | e6c6826d4252f670fa7afd80ea5cbb8db23bc027 (diff) |
Revert "lib,doc: remove obvious usages of toString on paths"
Diffstat (limited to 'lib/trivial.nix')
-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 8f2023caaf8e2..5d4fad8266bc9 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 = ./.. + "/.git-revision"; - gitRepo = ./.. + "/.git"; + revisionFile = "${toString ./..}/.git-revision"; + gitRepo = "${toString ./..}/.git"; in if lib.pathIsGitRepo gitRepo then lib.commitIdFromGitRepo gitRepo else if lib.pathExists revisionFile then lib.fileContents revisionFile |