From 2aa36551660b78bb70b9910fd524909298f3cf19 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 24 Apr 2025 17:08:33 +0200 Subject: [PATCH] computeBaseName(): Respect the original store path name --- src/libexpr/paths.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libexpr/paths.cc b/src/libexpr/paths.cc index 451962636..826a738a6 100644 --- a/src/libexpr/paths.cc +++ b/src/libexpr/paths.cc @@ -61,7 +61,7 @@ std::string EvalState::computeBaseName(const SourcePath & path) "This can typically be avoided by rewriting an attribute like `src = ./.` " "to `src = builtins.path { path = ./.; name = \"source\"; }`.", path); - return std::string(fetchToStore(*store, path, FetchMode::DryRun).to_string()); + return std::string(fetchToStore(*store, path, FetchMode::DryRun, storePath->name()).to_string()); } } return std::string(path.baseName());