andreabe_ has joined #nix-darwin
andreabe_ has quit [Client Quit]
alexteves has quit [Remote host closed the connection]
andreabe_ has joined #nix-darwin
<gchristensen> puffnfresh: ping
<puffnfresh> hey gchristensen
<gchristensen> seen the good news? :)
<puffnfresh> noooo what's that??
<puffnfresh> YAYYYY
<gchristensen> =)
<puffnfresh> yay just saturated my 50mbps connection
<puffnfresh> thanks <3 <3 <3
<gchristensen> :D
<gchristensen> I spent a few days gathering data on usage statistics and figured out it would cost like $50-$100 more to turn it on ...
<andreabe_> great news!
andreabe_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Lisanna has quit [Quit: Lisanna]
__Sander__ has joined #nix-darwin
__Sander__ has quit [Ping timeout: 240 seconds]
__Sander__ has joined #nix-darwin
alexteves has joined #nix-darwin
jtojnar has joined #nix-darwin
<mitchty> finally 32GiB macbook pros
* mitchty just ordered, been waiting ages, my mbp swaps more than a swapping machine
Sonarpulse has joined #nix-darwin
<gchristensen> nice
<LnL> I really don't know what I'm going to do for my next machine
<mitchty> i've had the current mbp for a bit over 4 years, so despite not liking paying as much as a motorcycle $3/day isn't too bad in the end
erickomoto has joined #nix-darwin
<erickomoto> Hi, I am trying to install ocaml >= 4.06.1 on darwin. I am using the nixpkgs-unstable channel. I believe that these versions may still not be up in hydra. I am ok building it on my own machine. I tried the following: `sudo nix-env -f https://github.com/NixOS/nixpkgs/archive/master.tar.gz -qa ocaml*`. But I cannot find the versions I am looking for this way. Can someone point me in the right direction? Why am I not able to find
<gchristensen> 10. #nix-darwin │ │163528 kristoferus75 | user is added in the nix confg file and is in the users wheel audio │ Acou_Bass
<gchristensen> oops
__Sander__ has quit [Quit: Konversation terminated!]
<LnL> erickomoto: I don't see a version that recent in nixpkgs
<erickomoto> LnL: I am assuming that the files 4.06.nix and 4.0.7 define those versions? https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/compilers/ocaml
<LnL> yeah
<LnL> oh, hmm
<LnL> I see, only the package set is exposed https://search.nix.gsc.io/?q=ocaml%2F4.07.nix&i=nope&files=&repos=
<LnL> nope
<LnL> nix-env -f '<nixpkgs>' -iA ocaml-ng.ocamlPackages_4_07.ocaml
<erickomoto> Is there a like a standard procedure I should follow to determine whether there is something wrong with my own nix installation? (Also, I'll try that, give me a sec...)
<erickomoto> nix-env -f '<nixpkgs>' -iA ocaml-ng.ocamlPackages_4_07.ocaml error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)
<erickomoto> echo $NIX_PATH /nix/var/nix/profiles/per-user/root/channels
<erickomoto> nix --version nix (Nix) 2.0
<LnL> hmm, and what's in there?
<LnL> there's nix-info which gathers some information about your nix install, but you probably can't run it without nixpkgs :p
<erickomoto> Haha... sorry I am kind of new to nix.
<erickomoto> nix-channel --list unstable https://nixos.org/channels/nixpkgs-unstable
<erickomoto> ls `echo $NIX_PATH` binary-caches manifest.nix unstable
<erickomoto> I was playing with channels today trying to install ocaml.
<LnL> ah ok, that probably explains this
<LnL> most things expect a channel named 'nixpkgs' as the default location to find stuff
<LnL> with your current setup it would be nix-env -f '<unstable>' -iA ocaml-ng.ocamlPackages_4_07.ocaml instead
<erickomoto> AWESOME
<erickomoto> Thanks a lot LnL!
<LnL> you probably want to change the name back tho
<erickomoto> I will. I just remove channel, add channel, and update
<LnL> or use NIX_PATH=nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixpkgs:/nix/var/nix/profiles/per-user/root/channels
<erickomoto> I think I got it.
<LnL> I think stuff like nix-shell -p hello --run hello assumes 'nixpkgs'
<erickomoto> Uff... I don't want to break that. I love nix-shell.
Sonarpulse has quit [Ping timeout: 276 seconds]
Sonarpulse has joined #nix-darwin
szicari has quit [Ping timeout: 256 seconds]
szicari has joined #nix-darwin
<LnL> hmm, what's architecture "x86_64h"?
<LnL> ugh, the stdenv build closure blew up again :/
<johnw> adelbertc: so, direnv doesn't really work with flycheck-haskell at all
<adelbertc> I got it working for a very simple project at home
<adelbertc> But at work I use Dante
<johnw> what happens is that when I enter the file the first time, flycheck-haskell is disabled for some reason
<johnw> if I enable it, it actually works fine
<adelbertc> Oh wait
<johnw> then I switch to another buffer and switch back
<adelbertc> There was something I had to do
<johnw> now it claims that a package is not visible
<adelbertc> Lol what OK I never saw that
<adelbertc> I had a different issue
<adelbertc> There's a ticket on emacs-direnv related to fly check that I've commented on
<adelbertc> If you can find it
<adelbertc> Unsure if it'll fix your issue
<adelbertc> Yeah that one
<johnw> ok, now I just immediately get the unknown package problem
<johnw> Suspicious state from syntax checker haskell-ghc: Flycheck checker haskell-ghc returned non-zero exit code 1, but its output contained no errors: <command line>: cannot satisfy -package criterion
<adelbertc> It should be doing the same thing as nix-shell and then whatever flycheck-haskrll does
<adelbertc> Try ghc pkgconfig ?
<johnw> it's odd that it works sometimes
<adelbertc> Or whatever that command is
<johnw> if I add criterion as a dependency to default.nix, then it works
<johnw> but I shouldn't need to do that
<johnw> because my nix-shell formulation does it
<johnw> it's as though it's using <nixpkgs>, and not <darwin>.pkgs
<johnw> ah, hmm
<johnw> I think that's it
<adelbertc> Hmmm
<johnw> I use this:
<johnw> and my .envrc is:
<johnw> . $(which use_nix.sh)
<johnw> use_nix
<johnw> it has the advantage of caching the environment, the way nix-buffer does
<johnw> so it's super fast once it's built
<johnw> <darwin>.pkgs includes my override that adds criterion to all haskell shell environments
<johnw> i'll debug it by turning on -x in use-nix.sh
<adelbertc> Oh nice I'm going to have to steal that
<johnw> I stole it too :)
<adelbertc> Does it rebuild intelligently too if it changes
<johnw> yes
<adelbertc> Woot
<johnw> and it protects the cached environment from GC
<adelbertc> Love it
<adelbertc> Nix + direnv is a killer combo methinks
<johnw> that script is from here: https://github.com/direnv/direnv/wiki/Nix
<johnw> yeah, one advantage it has over nix-buffer is that if you use M-! from a buffer, it shares the environment for that buffer
<LnL> I only recently started using it
<johnw> nix-buffer is a more immediate override, so M-! remains global in scope
<johnw> and it should cooperate with eshell
<LnL> I don't like the cd hook and kind of miss the shell functions from nix-shell, but other then that it's pretty great
Lisanna has joined #nix-darwin
<dhess> oh yay, is this going to fix the darwin issues with nixpkgs master? https://github.com/NixOS/cabal2nix/pull/358
<johnw> I hope
erickomoto has quit [Ping timeout: 252 seconds]
Lisanna has quit [Quit: Lisanna]
Lisanna has joined #nix-darwin
jtojnar has quit [Read error: Connection reset by peer]