diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2023-03-27 09:37:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-27 09:37:53 -0400 |
commit | 1d539aa28711b4214867ebd8db85de1000bbbe59 (patch) | |
tree | 929f51b4ac854efe96ab8ec59b98ea7c64532741 /src/nix-channel | |
parent | 5a0f5b5c34d90fe6515d23446402c491b992a99b (diff) | |
parent | 128994509f3d514b6a14f42f7459a40fe2d38bd4 (diff) |
Merge pull request #8073 from tweag/fix-root-channels-location
Fix root channels location
Diffstat (limited to 'src/nix-channel')
-rwxr-xr-x | src/nix-channel/nix-channel.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nix-channel/nix-channel.cc b/src/nix-channel/nix-channel.cc index 338a7d18e..740737ffe 100755 --- a/src/nix-channel/nix-channel.cc +++ b/src/nix-channel/nix-channel.cc @@ -168,7 +168,8 @@ static int main_nix_channel(int argc, char ** argv) nixDefExpr = settings.useXDGBaseDirectories ? createNixStateDir() + "/defexpr" : home + "/.nix-defexpr"; // Figure out the name of the channels profile. - profile = profilesDir() + "/channels"; + profile = profilesDir() + "/channels"; + createDirs(dirOf(profile)); enum { cNone, |