niv icon indicating copy to clipboard operation
niv copied to clipboard

error nixpkgs dependency

Open joeldyrhovden opened this issue 1 year ago • 1 comments

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

joeldyrhovden avatar Feb 07 '24 11:02 joeldyrhovden

@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?

nmattia avatar Feb 07 '24 19:02 nmattia