digga
digga copied to clipboard
Clean Installation gives out error
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
The problem line: https://github.com/divnix/digga/blob/bca4b89f497b8553dd9c0006e85c65e3e2937743/default.nix#L21
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.