dhess has joined #nix-darwin
philr has joined #nix-darwin
jtojnar_ has joined #nix-darwin
jtojnar has quit [Ping timeout: 240 seconds]
jtojnar_ is now known as jtojnar
jtojnar_ has joined #nix-darwin
jtojnar has quit [Ping timeout: 260 seconds]
jtojnar_ is now known as jtojnar
jtojnar_ has joined #nix-darwin
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nix-darwin
jtojnar_ has quit [Ping timeout: 276 seconds]
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nix-darwin
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nix-darwin
Lisanna has joined #nix-darwin
zzamboni has joined #nix-darwin
periklis has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 252 seconds]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 268 seconds]
zzamboni has joined #nix-darwin
<Lisanna> Hey LnL when are you planning on making 2.0 the default on the darwin channel?
<LnL> the stable channels use the same branch as the nixos release so whatever the default there is will automatically apply to darwin when you switch from 17.09 to 18.03
zzamboni has quit [Ping timeout: 248 seconds]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 248 seconds]
zzamboni has joined #nix-darwin
<johnw> sometimes when building Haskell projects, nix-shell is not the same environment as nix-build, even though shell.nix and default.nix reference the same packages
<johnw> for example, in a nix-shell I get this confusing error:
<johnw> but if I nix-build using default.nix for the same project, it works
<johnw> not even fully sure how to debug this one...
zzamboni has quit [Client Quit]
zzamboni has joined #nix-darwin
zzamboni has quit [Client Quit]
zzamboni has joined #nix-darwin
zzamboni has quit [Client Quit]
zzamboni has joined #nix-darwin
zzamboni has quit [Client Quit]
zzamboni has joined #nix-darwin
periklis has quit [Ping timeout: 256 seconds]
zzamboni has quit [Quit: Leaving.]
philr has quit [Ping timeout: 252 seconds]
zzamboni has joined #nix-darwin
zzamboni1 has joined #nix-darwin
zzamboni has quit [Remote host closed the connection]
<LnL> no idea, if it was the other way around it could be something like strip in the fixupPhase
zzamboni1 has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
philr has joined #nix-darwin
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Client Quit]
zzamboni has joined #nix-darwin
zzamboni has quit [Client Quit]
zzamboni has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Client Quit]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 248 seconds]
peacememories has joined #nix-darwin
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<LnL> _rvl: wait, iohk is using nix-darwin now? :o
Lisanna has quit [Quit: Lisanna]
peacememories has joined #nix-darwin
peacememories has quit [Client Quit]
peacememories has joined #nix-darwin
peacememories has quit [Ping timeout: 248 seconds]
philr has quit [Ping timeout: 256 seconds]
<johnw> LnL: a good defaults to add to nix-darwin: system.defaults.menuextra
<johnw> and a way to manage sudoers
<johnw> plus I'd like to manage /var/root/.ssh
<johnw> and the ability to disable the screen saver :)
jtojnar has quit [Remote host closed the connection]
<acowley> Can some else run "time nix-shell -p stdenv --run 'echo hey'" and tell me the timing they get?
<acowley> For me it's 3.3s of real time
<johnw> 1.132 wall time
<acowley> Thanks
<johnw> 0.96 on average for repeated runs
<acowley> I'm trying to diagnose my persistent problems with nix-shell startup being slow, and that baseline already seems high
<johnw> yeah, it's slow for me generally too
<acowley> It's frustrating because I really like the idea of being able to do 'nix-shell --run ....' to do something in the scope of a particular project, but the speed is a real drag when a lot of depedencies are involved. I'm tempted to investigate writing some kind of caching layer for environment variables.
<johnw> well, I simply can't use nix-shell to work on Haskell projects reliably
<acowley> That's worse
<johnw> myEnvFun is vastly more reliable in my experience
<johnw> and it disturbs me that so many people seem to keep wanting to get rid of myEnvFun, and to tell me "use nix-shell instead"
<johnw> i just need a well-performing, reliable way to work on local Haskell packages without constantly rebuilding everything through nix-build
<acowley> I never got too invested into myEnvFun, so doing everything in nix-shell has been fine.
<johnw> and yet, I still haven't found a satisfying solution to this
<johnw> every time I try to switch myself over to nix-shell, I run into more problems
<acowley> Well "fine" except that the performance is very, very bad.
<johnw> right now I have a framework missing, and it's unable to see a Haskell dependency that nix-build sees is there
<acowley> I'm sure you know all about this, but whenever I see a .hi problem with nix I assume it's a GHC non-deterministic build issue.
<johnw> no, not an .hi issue
<johnw> a "cabal doesn't even see that this package exists" problem
<johnw> the missing frameworks are even more puzzling
<johnw> since that's outside of the Haskell part of the issue entirely
<johnw> and I can't use cabal sandbox, since it fails to see system dependencies
<johnw> not without having to figure out a lot of absolute paths
<johnw> so as it stands right now, the only way for me to even *build* this particular Haskell project is to rebuild it every time using nix-build
<acowley> Well that's not tenable. Do it in docker?
<johnw> that's really not the answer I'm looking for :(
<johnw> i have a fast machine, wiht a fast disk, there's no reason this should just work
<johnw> and it does just work if I use homebrew and cabal
<johnw> shouldn't*
<johnw> in fact, for Haskell development, I may just use homebrew and cabal sandboxing
<johnw> i'm getting tired of un-debuggable environment issues like this
<johnw> right now I'm seeing this: There are files missing in the ‘MonadPrompt-1.0.0.5’ package
<johnw> and yet, there are no missing files if I use nix-build!
<acowley> Just as a sanity check, would you like me to try building whatever it is in a nix-shell?
<johnw> thanks for the offer, but I can't make this project public :(
<acowley> My nix-shells may be slow, but I've not had the kind of problem you're seeing :)
<johnw> if it ever happens with a freeware project, I'll let you know
<acowley> How about if you try to build a test program that depends on MonadPrompt
<acowley> You could verify that it builds in a nix-shell for you
<johnw> it doesn't
<johnw> that's the whole problem :(
<acowley> Oh
<johnw> it builds with nix-build, but not with nix-sehll
<johnw> for at least 3 different reasons
<johnw> missing framework, missing dependency, broken dependency
<johnw> none of which is the case with nix-build
<johnw> sigh
<johnw> trying to build with cabal sandbox under a nix-shell almost works
<johnw> but it dies with There are files missing in the ‘cabal-doctest-1.0.6’ package
<johnw> cool, one of the suggestions there fixed it
<johnw> yay
<johnw> cabal sandboxes work
<johnw> I just need to be in: nix-shell '<darwin>' -p haskellPackages.ghc blas liblapackWithoutAtlas darwin.apple_sdk.frameworks.Accelerate haskellPackages.cpphs gfortran.cc.lib
<johnw> using --command with this nix-shell takes 3s
<johnw> acowley: which is a similar slowness to what you're seeing
peacememories has joined #nix-darwin
peacememories has quit [Ping timeout: 256 seconds]
jtojnar has joined #nix-darwin
<acowley> johnw: My problem is that as I add to the number of packages, it gets slower and slower. So it's starts out 1-3s, but gets up to 20-30s.
<acowley>
<acowley>
<LnL> l
<LnL> johnw: that's a bunch of stuff :)
<LnL> johnw: menuextras as in https://github.com/LnL7/nix-darwin/pull/69?
<LnL> johnw: and what specifically in .ssh? I recently discovered that /etc/ssh/ssh_known_hosts doesn't exist by default so it's pretty safe to mess with
<johnw> LnL: just authorized_keys, and a single private key that I use just for talking between machines at home
<LnL> other stuff is harder, I'm scared to touch sudoers :/
<LnL> guess I'll have to implement copy at some point, ssh doesn't like symlinks to root:nixbld paths