jtojnar has joined #nix-darwin
jtojnar has quit [Ping timeout: 246 seconds]
jtojnar has joined #nix-darwin
spease has quit [Ping timeout: 260 seconds]
abathur has joined #nix-darwin
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nix-darwin
jtojnar has quit [Ping timeout: 245 seconds]
jtojnar has joined #nix-darwin
philr has quit [Ping timeout: 258 seconds]
abathur has quit [Ping timeout: 245 seconds]
hedgie has quit [Remote host closed the connection]
hedgie has joined #nix-darwin
hedgie has quit [Read error: Connection reset by peer]
hedgie_ has joined #nix-darwin
LnL has quit [Ping timeout: 244 seconds]
philr has joined #nix-darwin
__monty__ has joined #nix-darwin
philr has quit [Quit: WeeChat 2.5]
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nix-darwin
hedgie_ has quit [Read error: Connection reset by peer]
hedgie has joined #nix-darwin
Chiliparrot has joined #nix-darwin
sorbits has joined #nix-darwin
allan has quit [Ping timeout: 244 seconds]
mog- has joined #nix-darwin
mog has quit [Read error: Connection reset by peer]
mog- is now known as mog
peel has quit [Remote host closed the connection]
Ericson2314 has quit [Write error: Connection reset by peer]
thefloweringash has quit [Write error: Connection reset by peer]
codyopel has quit [Read error: Connection reset by peer]
kaychaks[m] has quit [Write error: Connection reset by peer]
thefloweringash has joined #nix-darwin
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kaychaks[m] has joined #nix-darwin
Ericson2314 has joined #nix-darwin
Guest64138 has joined #nix-darwin
dansteeves has joined #nix-darwin
<dansteeves> I have an issue with bash completions missing once I enter `nix-shell -A build` in any of my development projects. None of the Google-able answers seemed applicable or worked when I tried them. I declare programs.bash.enable and enableCompletion in my nix-darwin config, and they are working as expected at login. Any ideas why I lose the completions after entering nix-shell?
hedgie has quit [Read error: Connection reset by peer]
hedgie has joined #nix-darwin
<Guest64138> that's normal, nix-shell opens a subshell without your bashrc in order to configure it like the build environment
Guest64138 is now known as LnL
<LnL> nix-shell is intended more for reproducing a build interactively then to configure a development environment, even tho it's used for both
<aminechikhaoui> LnL on Linux at least nix-shell keeps bash completion working
<LnL> hmm are you sure?
<dansteeves> Yeah. We are using it also using it to manage varying dependencies between projects, in which case most of (our/my) activity would happen in a nix-shell session.
<aminechikhaoui> donnow, I'm currently in a nix-shell and I have bash completion 🤷
<aminechikhaoui> could be my config but not aware of anything special
<dansteeves> All of our Ubuntu or nixOS colleagues I've discussed this with get completions inherited into nix-shell.
<LnL> I would recommend you look at direnv for the latter, that also works for people that use a different login sheell
<LnL> but is _everyting_ broken or did you just loose some stuff from outside the shell?
<dansteeves> Most things are fine. My _only_ complaint in nix-shell at present is that completions are gone. Especially for hg.
<LnL> hmm indeed, never noticed that
<LnL> doesn't work on my nixos box with --pure either, but a regular shell preserves it
<aminechikhaoui> yeah generally I use --pure when I really want to reproduce a build environment
<dansteeves> For what it is worth, I had the same behavior when using nix-shell on my old machine without nix-darwin.
<LnL> interesting
<LnL> no idea why that might be happening
<dansteeves> Would it be worth creating an issue in the nix-darwin github?
<LnL> maybe, perhaps somebody already has a workaround for it
dansteeves has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nix-darwin
eraserhd has quit [Quit: WeeChat 2.5]
eraserhd has joined #nix-darwin
jtojnar has quit [Read error: Connection reset by peer]
dansteeves has joined #nix-darwin
<dansteeves> Most of the default.nix files I use day-to-day at work are quite complicated and include proprietary dependencies and nix code. Can someone suggest a simple default.nix file I can use to demonstrate how bash completions from programs.bash.enableCompletions = true do not survive into the shell?
<__monty__> dansteeves: Can't you use something really simple like hello's default.nix?
<dansteeves> Oh, maybe.
<dansteeves> Dumb newbie question, but how do I specify stdenv on macos?
<dansteeves> default.nix for hello has stdenv and fetchurl, neither are defined in my default nix paths.
<__monty__> dansteeves: Can't you just callPackage it?
<dansteeves> Sorry I'm a newbie at this. If all I've done is install nix and nix-darwin, then what would I do to enter an environment for hello via callPackage?
<aminechikhaoui> dansteeves let's chat in slack, I can assist you in creating the issue :)
<__monty__> Why slack and not here?
<dansteeves> Amine and I work together he's just trying to help out.
<dansteeves> [dan@glycol Fri Sep 06 16:22:11 ~/src/nix-shell-test]
<dansteeves> $ ls
<dansteeves> [dan@glycol Fri Sep 06 16:22:14 ~/src/nix-shell-test]
<dansteeves> default.nix
<dansteeves> $ cat default.nix
<dansteeves> { pkgs ? import <nixpkgs> {} }:
<dansteeves> pkgs.mkShell {
<dansteeves> buildInputs = [ pkgs.mercurial];
<dansteeves> }
<dansteeves> [dan@glycol Fri Sep 06 16:22:18 ~/src/nix-shell-test]
<dansteeves> $ hg
<dansteeves> add backout branches commit export grep import log parents purge rename root tag update
<dansteeves> addremove bisect bundle config files heads incoming manifest paths push resolve serve tags verify
<dansteeves> annotate bookmarks cat copy forget help init merge phase recover revert status tip version
<dansteeves> archive branch clone diff graft identify locate outgoing pull remove rollback summary unbundle
<dansteeves> [dan@glycol Fri Sep 06 16:22:18 ~/src/nix-shell-test]
<dansteeves> $ # that was result of hg tab
<dansteeves> [dan@glycol Fri Sep 06 16:22:45 ~/src/nix-shell-test]
<dansteeves> $ nix-shell
<dansteeves> warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
<dansteeves> [nix-shell:~/src/nix-shell-test]$ hg default.nix ^C
<dansteeves> [nix-shell:~/src/nix-shell-test]$ # that was result of hg tab!
<dansteeves> Well sorry wish that came out as one multi-line message.
<dansteeves> But should help illustrate the issue.
<__monty__> Yeah, you can't paste to irc.
<__monty__> ,pastebin
<__monty__> ,paste
<{^_^}> Use a website such as [ https://gist.github.com/ http://ix.io/ https://hastebin.com/ http://sprunge.us/ https://paste.ee/ ] or similar services to share anything that's longer than a couple lines.
<__monty__> Hmm, I'm not convinced that's a bug tbh. buildInputs are dependencies, wouldn't it be weird to add completions for something that's just a dependency in a build? Do the people that retain the completions in nix-shell maybe have hg/whatever completions already installed outside?
<dansteeves> I think that's what I'm trying to show ... I _have_ hg completions installed in my default shell -- using nix darwin's programs.bash.enable and programs.bash.enableCompletion in my config -- But whenever I start a new nix-shell I lose them.
<dansteeves> So while I would not expect my build inputs to _include_ new completions, I would at least expect to keep the ones I have.
<__monty__> Oh, I misunderstood.
dansteeves has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__monty__ has quit [Quit: leaving]
abathur has joined #nix-darwin