Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninstall fails on fresh install #853

Open
schwa opened this issue Jan 17, 2024 · 2 comments
Open

Uninstall fails on fresh install #853

schwa opened this issue Jan 17, 2024 · 2 comments

Comments

@schwa
Copy link

schwa commented Jan 17, 2024

Testing nix-darwin and now trying to uninstall via

nix-build https://github.com/LnL7/nix-darwin/archive/master.tar
.gz -A uninstaller

And getting this error:


error:
       … while calling the 'import' builtin

         at /nix/store/9b3h7kfb7crgz84xpvzvwx85gcbfhy8x-source/default.nix:4:10:

            3| , lib ? pkgs.lib
            4| , pkgs ? import nixpkgs { inherit system; }
             |          ^
            5| , system ? builtins.currentSystem

       … while calling the 'findFile' builtin

         at /nix/store/9b3h7kfb7crgz84xpvzvwx85gcbfhy8x-source/default.nix:1:13:

            1| { nixpkgs ? <nixpkgs>
             |             ^
            2| , configuration ? <darwin-config>

       error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)

       at «none»:0: (source not available)
@Enzime
Copy link
Collaborator

Enzime commented Jan 18, 2024

Try this instead:

$ nix --extra-experimental-features "nix-command flakes" run nix-darwin#darwin-uninstaller

@aspauldingcode
Copy link

I just had the same issue.
Except, not a fresh install. I was using it for a while and something broke.
The same uninstall command wouldn't work for me.

This one does..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants