ralismark / nix-appimage

Convert a nixos derivation into a self-contained binary
MIT License
156 stars 20 forks source link

error: path '/nix/store/...-neovim-0.10.0/bin/nvim' is not in the Nix store #16

Closed sivertism closed 2 months ago

sivertism commented 2 months ago

Hi, I'm trying to bundle neovim with configs so that I can use it outside of Nix/NixOS. Thought this AppImage bundler could be a good way of doing that. Being able to pass along an AppImage to whatever server I'm working in would be great.

So I tried

> nix bundle --bundler github:ralismark/nix-appimage github:sivertism/kickstart-nix.nvim

However, I'm getting an error:

error: path '/nix/store/<hash>-neovim-0.10.0/bin/nvim' is not in the Nix store

Any idea what causes this and how I might fix it?

sivertism commented 2 months ago

Update: I tried the example in the README and I get a similar error, but this time about hello missing

> nix bundle --bundler github:ralismark/nix-appimage nixpkgs#hello

->

error: path '/nix/store/<hash>-hello-2.12.1/bin/hello' is not in the Nix store
matthiasdotsh commented 2 months ago

Same here:

# Older verison works fine:
$ nix bundle --bundler 'github:ralismark/nix-appimage?rev=46aef0153eb833e0b896b60ca2bdb6354b410e45' nixpkgs#hello

# Latest version fails:
$ nix bundle --bundler 'github:ralismark/nix-appimage?rev=91971c6b37fe939b159fb54c130c187c947a8269' nixpkgs#hello
error: path '/nix/store/hs3yxdq9knimwdm51gvbs4dvncz46f9d-hello-2.12.1/bin/hello' is not in the Nix store
sivertism commented 2 months ago

Can confirm that the older version works for me as well, thanks @matthiasdotsh!

ralismark commented 2 months ago

Ah yikes, seems to be a problem with nix itself:

Supposedly fixed with newer versions of Nix, but to avoid forcing everyone to update I'll add a workaround.