You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fish: NixOS module is broken because of /share/fish/vendor_completions.d #16614
The fish NixOS module, enabled by programs.fish.enable = true; is broken for me on the nixos-unstable channel. I first commented over on the PR which I believe caused this: #14526 (comment).
Steps to reproduce
When I sudo nixos-rebuild switch I get this:
cannot create directory `/nix/store/m3rrr54qspwiwyzn4gjrys36km6jz1g6-system-path//share/fish/vendor_completions.d': No such file or directory at /nix/store/xz5k60frmvvrj16lf7b0d8h3p0l4l7xw-builder.pl line 186.
builder for ‘/nix/store/bm5q3hs3pnijrjx1yrr647pslmzl986g-system-path.drv’ failed with exit code 2
cannot build derivation ‘/nix/store/z8bwgpzs4wiiv72rm4anc4mx1ixph1w2-nixos-system-conway-16.09pre85931.125ffff.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/z8bwgpzs4wiiv72rm4anc4mx1ixph1w2-nixos-system-conway-16.09pre85931.125ffff.drv’ failed
There is a broken-looking path in there with a double slash: /nix/store/m3rrr54qspwiwyzn4gjrys36km6jz1g6-system-path//share/fish/vendor_completions.d.
I later realized this error only occurs if you have no packages with /share/fish/vendor_completions.d. So, technically, I can work around this error by adding docker to environment.systemPackages. This also means that to reproduce you must remove any packages with that path.
Activity
Profpatsch commentedon Jun 30, 2016
That doesn’t seem to be the fault of the fish module, as this minimal system shows, which builds just fine:
What is the last commit where it still works? Has it worked at all in the past?
solson commentedon Jun 30, 2016
@Profpatsch Ah, nice example. Sorry for jumping to conclusions.
I minimized my error-inducing config and ended up with this, which you should be able to reproduce the problem with:
nix-build -E '(import <nixpkgs/nixos> { configuration = { programs.fish.enable = true; services.xserver = { enable = true; desktopManager.kde5.enable = true; }; }; }).vm'I'm not sure yet what part of KDE5 triggers the problem.
Not sure. I haven't tested older versions of nixpkgs and I am new to NixOS.
rasendubi commentedon Jul 3, 2016
FYI: I have the same issue and I don't have kde5 enabled.
Profpatsch commentedon Jul 3, 2016
@rasendubi can you create an invocation like the ones above?
rasendubi commentedon Jul 3, 2016
I've tried to do that yesterday but failed. I'll be busy during the week but will try again next weekend.
FWIW, my full config is available at github -- adding
programs.enable.fish = true;breaks it for me.dezgeg commentedon Jul 3, 2016
The problem seems
environment.pathsToLink = [ "/share" ];which is enabled by e.g. KDE and some others:rasendubi commentedon Jul 4, 2016
I confirm I have this in my config, too.
buildEnv: don't create directory if it already exists
rasendubi commentedon Jul 9, 2016
Found and fixed the issue. See #16821.
buildEnv: don't create directory if it already exists
buildEnv: build the whole tree of directories to pathsToLink
buildEnv: build the whole tree of directories to pathsToLink
solson commentedon Jul 13, 2016
So I think this was ultimately fixed by #16828? I'll check it out later when I have access to NixOS.