Advertisement
Guest User

Untitled

a guest
Nov 19th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. 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
  2. 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?
  3. 2017-11-05 01:32:54 gfixler does Nix ever give such information about what to install when something is missing?
  4. 2017-11-05 01:33:17 gfixler very strange being in a system on top of a system atm
  5. 2017-11-05 01:33:20 Mateon1 gfixler: I think that's a bash script responsible for that
  6. 2017-11-05 01:33:46 Mateon1 Nix definitely supports showing what packages to install, I see that on my NixOS system
  7. 2017-11-05 01:33:57 gfixler cool
  8. 2017-11-05 01:34:05 gfixler I would think it would rule at that
  9. 2017-11-05 01:34:16 Mateon1 But I have no idea what actually decides what to show on not installed commands
  10. 2017-11-05 01:34:35 gfixler would be nice if I could ask who's speaking to me :)
  11. 2017-11-05 01:34:52 gfixler $ whoisreplying vim
  12. 2017-11-05 01:35:58 --> joehh (~joehh@103.75.204.193) has joined #nixos
  13. 2017-11-05 01:36:52 ArdaXi[m] That is the command-not-found handler, it's installed into the global bashrc/zshrc/etc
  14. 2017-11-05 01:37:07 ArdaXi[m] On NixOS, that is, on Ubuntu you should be able to add it manually
  15. 2017-11-05 01:37:23 Mateon1 On my nixos system, the file responsible is /run/current-system/sw/bin/command-not-found
  16. 2017-11-05 01:38:03 ArdaXi[m] It'd be interesting to know what package installs that
  17. 2017-11-05 01:38:10 gfixler ArdaXi[m]: this was Ubuntu talking to me from behind Nix
  18. 2017-11-05 01:38:20 Mateon1 Which, fittingly, comes from a package called "command-not-found"
  19. 2017-11-05 01:38:24 ArdaXi[m] Yeah, I know
  20. 2017-11-05 01:39:00 ArdaXi[m] Mateon1: That's not in all-packages afaict
  21. 2017-11-05 01:39:10 <-- joehh (~joehh@103.75.204.193) has quit (Remote host closed the connection)
  22. 2017-11-05 01:39:14 sphalerite yeah it's in a module iirc
  23. 2017-11-05 01:39:23 --> joehh_ (~joehh@103.75.204.193) has joined #nixos
  24. 2017-11-05 01:39:30 sphalerite nixos/modules/programs/command-not-found/command-not-found.nix
  25. 2017-11-05 01:39:33 sphalerite So it's a nixos-specific feature
  26. 2017-11-05 01:39:50 sphalerite although we could probably factor it out to work in nix-on-other-OS systems
  27. 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
  28. 2017-11-05 01:41:11 gfixler from my /etc/bash.bashrc: # if the command-not-found package is installed, use it
  29. 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