nmattia / niv

Easy dependency management for Nix projects
https://github.com/nmattia/niv
MIT License
1.52k stars 74 forks source link

error nixpkgs dependency #391

Open joeldyrhovden opened 4 months ago

joeldyrhovden commented 4 months ago

running niv, "nix-shell -p niv --run "niv init --nixpkgs nixos/nixpkgs --nixpkgs-branch nixos-23.11", result in error:

FATAL: Could not read the output of 'nix-prefetch-url'

stderr: error: getting status of '/run/user/501': No such file or directory

FATAL: One or more packages failed to update: nixpkgs: ExitFailure 1 ERROR: ExitFailure 1 ERROR: ExitFailure 1

nmattia commented 4 months ago

@joeldyrhovden could it be that it's a nix-prefetch-url issue? do you know where /run/user/501 comes from? is that a broken $HOME or $TMPDIR?