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

2017-05-04 Thread Eelco Dolstra
Hi, On 05/04/2017 05:00 PM, Jos van den Oever wrote: > This does not: > > NIX_AUTO_RUN=1 sqlite3 That's because sqlite3 is in multiple packages (sqlite and sqliteInteractive). NIX_AUTO_RUN only works if there is only one variant. Might be nice if it picked one according to some heuristic. --

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

2017-05-04 Thread Jos van den Oever
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,

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

2017-05-02 Thread Marc Weber
> > $ export NIX_AUTO_RUN=1 Well, maybe refactoring would make sense and call it ON_MISSING_BUT_KNOWN_EXECUTABLE=run/install/ask/ask_run/ask_install/ask_once_run/ask_once_install where run => runs ask => asks whether to run or run and install ask_install => asks to install ask_run =>

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

2017-05-02 Thread Frank
It would be nice if the database had the description of the package: It would be easy to build a QT-package-manager based on the info (or some other frontend). Greetings, Frank Op Mon, 1 May 2017 12:37:07 +0200 "regiv...@gmail.com" schreef: > I think it's really a

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

2017-05-01 Thread Benno Fünfstück
I believe https://github.com/NixOS/nixos-channel-scripts/issues/13 breaks the sqlite database, since only a few NARs have listings in the old format. Eelco Dolstra schrieb am Mo., 1. Mai 2017 um 14:23 Uhr: > Hi, > > On 05/01/2017 02:11 PM, Jörg Thalheim wrote: > > >

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

2017-05-01 Thread Eelco Dolstra
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

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

2017-05-01 Thread Jörg Thalheim
Unfortunately the sqlite database feeding command-not-found is almost empty at the moment, so this command is useless. On 2017-05-01 12:05, Eelco Dolstra wrote: > Hi, > > On 05/01/2017 11:55 AM, regiv...@gmail.com wrote: > >> If you enter a command, you want to run it. >> >> If the

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

2017-05-01 Thread regiv...@gmail.com
For cautious users, there might be the message: "dc is not installed. Do you want to install it? Yes / no " But in practice, typos are rarely problematic. ___ nix-dev mailing list nix-dev@lists.science.uu.nl

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

2017-05-01 Thread regiv...@gmail.com
I think it's really a very interesting feature! A user no longer needs to install their programs: nix installs them in his place when he needs them. This option could be highlighted in the NixOS presentation. ___ nix-dev mailing list

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

2017-05-01 Thread Sergiu Ivanov
Hello, Thus quoth regiv...@gmail.com at 09:55 on Mon, May 01 2017: > > If you enter a command, you want to run it. > > If the corresponding program is not installed, the command is a symbolic > link to a script that says: > > _ download the program and its dependencies, > _ install it, > _ run

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

2017-05-01 Thread Bjørn Forsman
On 1 May 2017 at 12:05, Eelco Dolstra wrote: > Hi, > > On 05/01/2017 11:55 AM, regiv...@gmail.com wrote: > >> If you enter a command, you want to run it. >> >> If the corresponding program is not installed, the command is a symbolic >> link to >> a script that says:

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

2017-05-01 Thread Eelco Dolstra
Hi, On 05/01/2017 11:55 AM, regiv...@gmail.com wrote: > If you enter a command, you want to run it. > > If the corresponding program is not installed, the command is a symbolic link > to > a script that says: > > _ download the program and its dependencies, > _ install it, > _ run it. On

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

2017-05-01 Thread regiv...@gmail.com
Hello! If you enter a command, you want to run it. If the corresponding program is not installed, the command is a symbolic link to a script that says: _ download the program and its dependencies, _ install it, _ run it. The speed of installation and execution is optimal because the script