aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/builtins
diff options
context:
space:
mode:
authorEli Kogan-Wang <elikowa@gmail.com>2022-05-11 12:15:08 +0200
committerEli Kogan-Wang <elikowa@gmail.com>2022-05-11 12:16:35 +0200
commitaefc6c4f41bfac0c76807c234fd0a786dd40f140 (patch)
tree4e56e4d651ca1aa5d46a141b84311792754670dd /src/libstore/builtins
parent54457382f948bff30e2879a7d9047616e134ac5b (diff)
Add priority for nix profile install
Diffstat (limited to 'src/libstore/builtins')
-rw-r--r--src/libstore/builtins/buildenv.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/builtins/buildenv.cc b/src/libstore/builtins/buildenv.cc
index 6f6ad57cb..c17c76e71 100644
--- a/src/libstore/builtins/buildenv.cc
+++ b/src/libstore/builtins/buildenv.cc
@@ -93,8 +93,9 @@ static void createLinks(State & state, const Path & srcDir, const Path & dstDir,
auto prevPriority = state.priorities[dstFile];
if (prevPriority == priority)
throw Error(
- "packages '%1%' and '%2%' have the same priority %3%; "
+ "files '%1%' and '%2%' have the same priority %3%; "
"use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' "
+ "or 'nix profile --priority NUMBER INSTALLED_PKGNAME' "
"to change the priority of one of the conflicting packages"
" (0 being the highest priority)",
srcFile, readLink(dstFile), priority);