1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-03 06:11:46 +02:00

profile.cc: extract value from NixInt for priority in packageInfo

This commit is contained in:
Eli Kogan-Wang 2025-01-29 11:50:47 +01:00
parent 664d21d1fd
commit 50409bc8e0

View file

@ -186,7 +186,7 @@ struct ProfileManifest
for (auto & packageInfo : packageInfos) { for (auto & packageInfo : packageInfos) {
ProfileElement element; ProfileElement element;
element.storePaths = {packageInfo.queryOutPath()}; element.storePaths = {packageInfo.queryOutPath()};
element.priority = packageInfo.queryMetaInt("priority", NixInt{defaultPriority}); element.priority = packageInfo.queryMetaInt("priority", NixInt{defaultPriority}).value;
addElement(std::move(element)); addElement(std::move(element));
} }
} }