Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2017-11-05 01:32:19 gfixler so I have Nix installed on Ubuntu, and no Vim yet, and I get a sudo apt install <selected package> message when trying to run vim
- 2017-11-05 01:32:36 gfixler is that just me falling past the nix stuff at the front of $PATH and Ubuntu/apt telling me this?
- 2017-11-05 01:32:54 gfixler does Nix ever give such information about what to install when something is missing?
- 2017-11-05 01:33:17 gfixler very strange being in a system on top of a system atm
- 2017-11-05 01:33:20 Mateon1 gfixler: I think that's a bash script responsible for that
- 2017-11-05 01:33:46 Mateon1 Nix definitely supports showing what packages to install, I see that on my NixOS system
- 2017-11-05 01:33:57 gfixler cool
- 2017-11-05 01:34:05 gfixler I would think it would rule at that
- 2017-11-05 01:34:16 Mateon1 But I have no idea what actually decides what to show on not installed commands
- 2017-11-05 01:34:35 gfixler would be nice if I could ask who's speaking to me :)
- 2017-11-05 01:34:52 gfixler $ whoisreplying vim
- 2017-11-05 01:35:58 --> joehh (~joehh@103.75.204.193) has joined #nixos
- 2017-11-05 01:36:52 ArdaXi[m] That is the command-not-found handler, it's installed into the global bashrc/zshrc/etc
- 2017-11-05 01:37:07 ArdaXi[m] On NixOS, that is, on Ubuntu you should be able to add it manually
- 2017-11-05 01:37:23 Mateon1 On my nixos system, the file responsible is /run/current-system/sw/bin/command-not-found
- 2017-11-05 01:38:03 ArdaXi[m] It'd be interesting to know what package installs that
- 2017-11-05 01:38:10 gfixler ArdaXi[m]: this was Ubuntu talking to me from behind Nix
- 2017-11-05 01:38:20 Mateon1 Which, fittingly, comes from a package called "command-not-found"
- 2017-11-05 01:38:24 ArdaXi[m] Yeah, I know
- 2017-11-05 01:39:00 ArdaXi[m] Mateon1: That's not in all-packages afaict
- 2017-11-05 01:39:10 <-- joehh (~joehh@103.75.204.193) has quit (Remote host closed the connection)
- 2017-11-05 01:39:14 sphalerite yeah it's in a module iirc
- 2017-11-05 01:39:23 --> joehh_ (~joehh@103.75.204.193) has joined #nixos
- 2017-11-05 01:39:30 sphalerite nixos/modules/programs/command-not-found/command-not-found.nix
- 2017-11-05 01:39:33 sphalerite So it's a nixos-specific feature
- 2017-11-05 01:39:50 sphalerite although we could probably factor it out to work in nix-on-other-OS systems
- 2017-11-05 01:40:36 ArdaXi[m] Yeah, I see, no idea why that derivation is defined in the module, rather than as a package
- 2017-11-05 01:41:11 gfixler from my /etc/bash.bashrc: # if the command-not-found package is installed, use it
- 2017-11-05 01:41:11 sphalerite to convince people to switch to nixos? :p
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement