nix-env issue
eonpatapon opened this issue · 0 comments
eonpatapon commented
With a derivation generated by pypi2nix
and with an empty nix store, nix-env
fails:
nix-env -f default.nix -q -a
error: cannot import '/nix/store/daxah6fdy30gb54s92qy3fp6d1hz78kh-source/overrides.nix', since path '/nix/store/07n6nx9pjaqals3d722ds1pr25w8zqaj-source.drv' is not valid, at /pypi2nixPackage/requirements.nix:1509:219
(use '--show-trace' to show detailed location information)
Looks like it's due to:
commonOverrides = [
(let src = pkgs.fetchFromGitHub { owner = "nix-community"; repo = "pypi2nix-overrides"; rev = "100c15ec7dfe7d241402ecfb1e796328d0eaf1ec"; sha256 = "0akfkvdakcdxc1lrxznh1rz2811x4pafnsq3jnyr5pn3m30pc7db"; } ; in import "${src}/overrides.nix" { inherit pkgs python; })
];
I guess pkgs.fetchFromGitHub
can't be used at eval time ?
Using builtins.fetchTarball
instead of pkgs.fetchFromGitHub
fixes the issue.