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

Clean Installation gives out error #498

Open
osmano807 opened this issue Jan 13, 2023 · 1 comment · May be fixed by #501
Open

Clean Installation gives out error #498

osmano807 opened this issue Jan 13, 2023 · 1 comment · May be fixed by #501
Labels
bug Something isn't working

Comments

@osmano807
Copy link

Expected Behavior

The installation instructions on the documentation completed without error

Current Behavior

When running the following command on a clean NixOS 22.11 install:

$ nix-shell "https://github.com/divnix/digga/archive/main.tar.gz" \
  --run "nix flake init -t github:divnix/digga"
error: getting status of '/nix/store/hh5r5spax8d8d0fbn8hvhixy4w8j8027-source/devShell.nix': No such file or directory

Steps to Reproduce

Following documentation

Your Environment

nix run nixpkgs#nix-info -- -m; nix flake metadata

  • system: "x86_64-linux"
  • host os: Linux 5.15.86, NixOS, 22.11 (Raccoon), 22.11.1574.6a3f9996408
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.11.1
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

path '/tmp' does not contain a 'flake.nix', searching up
error: could not find a flake.nix file

@osmano807 osmano807 added the bug Something isn't working label Jan 13, 2023
@Lord-Valen
Copy link
Contributor

Lord-Valen commented Jan 20, 2023

The problem line:

shell = import ./devShell.nix {};

We should probably have tests for the compat files. For now, nix --experimental-features 'nix-command flakes' flake init -t github:divnix/digga should have the intended effect. In fact, this command should probably be what is recommended in the docs anyway since it is easier to remember and type, more obvious in its effect, and teaches a little about how to use nix-command. If we take that approach, I think the compat files would be unnecessary which saves us on complexity and testing.

Lord-Valen added a commit to Lord-Valen/digga that referenced this issue Feb 20, 2023
Lord-Valen added a commit to Lord-Valen/digga that referenced this issue Feb 20, 2023
@Lord-Valen Lord-Valen linked a pull request Feb 25, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants