madjar / nox

Tools to make nix nicer to use
MIT License
305 stars 35 forks source link

Cannot find `discord` #62

Open danbst opened 7 years ago

danbst commented 7 years ago

Nox 0.0.5

$ nox discord
Warning: could not find a version indicator for /home/deployer/.nix-defexpr/channels_root
1 ddate-0.2.2 (nixos-16.09.ddate)
    Discordian version of the date program
2 ddate-0.2.2 (nixpkgs.ddate)
    Discordian version of the date program
3 python3.5-discord.py-0.16.4 (nixpkgs.python35Packages.discordpy)
    A python wrapper for the Discord API
Packages to install:

Though such package does exist, but has "unfree" license.

FRidh commented 7 years ago

Did you set allowUnfree = true;?

danbst commented 7 years ago

no, but that is counterintuitive, just like nix-env behavior is this situation.

But nox isn't nix, it can behave better.

FRidh commented 7 years ago

nox uses nix-env. It could work around it by overriding the config.allowUnfree setting.

mfarrugi commented 6 years ago

Worth nothing that it requires nox --force-refresh to find unfree packages after changing the setting.