Don't use OS_STR in nix-channel.cc

This commit is contained in:
siddhantCodes 2024-08-18 18:27:20 +05:30
parent 58ef129502
commit 9ccad9708e

View file

@ -166,7 +166,7 @@ static int main_nix_channel(int argc, char ** argv)
{
// Figure out the name of the `.nix-channels' file to use
auto home = getHome();
channelsList = settings.useXDGBaseDirectories ? createNixStateDir() + OS_STR("/channels") : home + OS_STR("/.nix-channels");
channelsList = settings.useXDGBaseDirectories ? createNixStateDir() + "/channels" : home + "/.nix-channels";
nixDefExpr = getNixDefExpr();
// Figure out the name of the channels profile.