I’ve installed nix on Mac OS Catalina after encountering several problems. I was not able to find the installation
nix --version
gave me
nix: command not found'
until I read a suggestion to run
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
now i have
nix (Nix) 2.6.0
I attempted to install pypi2nix
nix-env -iA nixpkgs.pypi2nix
but got the error
Package ‘pypi2nix-2.0.4’ in /nix/store/0p5yvrdi3ss7s6p0ndgwi7dy8bjg4d3f-nixpkgs/nixpkgs/pkgs/development/tools/pypi2nix/default.nix:7 is marked as broken
So I temporarily allowed broken packages
export NIXPKGS_ALLOW_BROKEN=1
The installation of pipi2nix appeared to complete but, if I try run run pypi2nix I get
ImportError: cannot import name 'nix_prefetch_github' from 'nix_prefetch_github' (/nix/store/7f4r80iciwfs2z5dwiwrhmgn4cw1n24p-python3.9-nix-prefetch-github-5.0.1/lib/python3.9/site-packages/nix_prefetch_github/__init__.py)
All I need to do is run pypi2nix on an updated requirements.txt and generate an updated dependencies.nix
Any suggestions would be appreciated