nix-community / nix-index

Quickly locate nix packages with specific files [maintainers=@bennofs @figsoda @raitobezarius]
Other
817 stars 50 forks source link

`nix-env` failed with exit code 1: 'xlibs' has been renamed to/replaced by 'xorg' #178

Closed charmoniumQ closed 2 years ago

charmoniumQ commented 2 years ago

Hello, fresh install fresh everything, this happens:

$ nix-index --version
Nixpkgs Files Indexer 0.1.2

$ nix-index
+ querying available packages
error: querying available packages failed
caused by: nix-env failed with error: nix-env failed with exit code 1:
error: 'xlibs' has been renamed to/replaced by 'xorg'
emptyflask commented 2 years ago

Same here on arm64 (MacOS w/ M1)

hqurve commented 2 years ago

I suspect, this line needs to be changed https://github.com/bennofs/nix-index/blob/7f3d8c2f691cda8172118dfea1f1a2d5746906e4/src/bin/nix-index.rs#L205