[Nix-dev] Suggestion: programs are *always* in the path

Jos van den Oever jos at vandenoever.info
Thu May 4 17:00:12 CEST 2017


On Monday 01 May 2017 14:23:38 Eelco Dolstra wrote:
> Hi,
> 
> On 05/01/2017 02:11 PM, Jörg Thalheim wrote:
> > Unfortunately the sqlite database feeding command-not-found is almost
> > empty at the moment,
> > 
> > so this command is useless.
> 
> What channel are you on? For the minimal channel, the database contains only
> a handful of packages, but the regular channel has a pretty extensive
> database:
> 
> $ sqlite3 /nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite
> 'select count(*) from Programs'
> 49351

I just tried this while not having sqlite3 installed.

This works:

NIX_AUTO_RUN=1 gphoto2

This does not:

NIX_AUTO_RUN=1 sqlite3

Perhaps this feature only works when the package name is equal to the 
executable name. Or the issue is that there are two packages with the same 
executable name.

sqlite> select * from programs where name = 'sqlite3';
sqlite3|i686-linux|sqlite
sqlite3|i686-linux|sqlite-interactive
sqlite3|x86_64-linux|sqlite
sqlite3|x86_64-linux|sqlite-interactive

sqlite> select * from programs where name = 'gphoto2';
gphoto2|i686-linux|gphoto2
gphoto2|x86_64-linux|gphoto2

Cheers,
Jos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: This is a digitally signed message part.
URL: <https://mailman.science.uu.nl/pipermail/nix-dev/attachments/20170504/e1ed7459/attachment.sig>


More information about the nix-dev mailing list