philr has joined #nix-darwin
<johnw> doesn't the nixpkgs-unstable channel only update if the Hydra builds are passing?
<johnw> phantomjs now dies with compile errors
<johnw> ah
<johnw> 45 builds??
pjan_ has joined #nix-darwin
<johnw> ah, it's pkgs.phantomjs2
<johnw> that's dying
<johnw> a dependency of youtube-dl
<johnw> webpage.cpp:80:89: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
<johnw> ah, it's a new dependency that was never building for me before
<johnw> just need an overlay with phantomjsSupport = false;
<nkpart> Hi, I'm attempting to port a haskell+stack+nix build to bare nix, and I'm stuck on a runtime library error when the test suite runs - https://gist.github.com/nkpart/5b5e8392ba2af48f7be577b012b8a2fd
<nkpart> I don't have a more minimal example yet, work stuff, but has anyone seen this?
<johnw> maybe pull in the ImageIO overlay
<johnw> i.e., add:
<johnw> inherit (pkgs.darwin.apple_sdk.frameworks) ImageIO;
<johnw> and then add it to buildInputs
<nkpart> Not sure if this is the best way to do it, but I tried this
<nkpart> `rap-common = pkgs.lib.overrideDerivation (modifiedHaskellPackages.callPackage ./tools/rap-common/default.nix { }) (old: {
<nkpart> buildInputs = old.buildInputs ++ [ImageIO];
<nkpart> });`
<nkpart> Same error
<nkpart> Unless I need it on png itself?
<johnw> hmm... maybe; I'm mostly guessing here. @copumpkin would know
<nkpart> All good, thanks anyway
<johnw> is this a fair command for determining how many packages are built in my current environment: nix-store -qR $(readlink ~/.nix-profile) $(readlink /run/current-system) | grep -v '\.drv$' | wc -l
<johnw> LnL: one thing I've noticed, and I don't know if this is due to distributed builds or not, but if I start a nix-build and then use C-c, it does NOT stop the builds
<johnw> it is then very hard to get them to stop, actually
<johnw> (probably because I started them with -k, so if I kill the process for one build, it just errors out and starts the next one)
<johnw> nkpart: did you figure it out?
<nkpart> No :(
pxc has joined #nix-darwin
<nkpart> I tried ImageIO as a buildinput to both libpng, and to the haskell package
<nkpart> I *think* it's an error that ImageIO is finding the nix-store libpng
<johnw> ah, right
<johnw> I read it the wrong way around
<nkpart> Yeah so did I for a while
<johnw> weird
<johnw> ok, then forget what I suggested
pxc has quit [Ping timeout: 240 seconds]
<nkpart> Tried changing the prefix, gave the same error, looks like it did rebuild etc. though
<qmm> https://gist.github.com/qmmdb/3bb39f0b78a9c5da1916172ececb86fd that was the result of running "nix-shell -p haskell.compiler.ghcjs"
<qmm> i really would appreciate any help offered
<pjan_> LnL: I pulled the latest version, and get this: Could not write domain /Library/Preferences/SystemConfiguration/com.apple.smb.server. Something changed?
hamishmack has quit [Quit: hamishmack]
<dhess> LnL: johnw: you are running nix 1.12 on your Macs, yeah?
hamishmack has joined #nix-darwin
<johnw> dhess: yes
<dhess> johnw: does it handle remote builds?
<johnw> dhess: yes, seems to just fine
<johnw> now, nix-darwin still calls nix-build, and not "nix build"
<dhess> johnw: how about sandboxed builds, are you doing those with it?
<dhess> johnw: that is probably ok
<johnw> no, haven't tried sandbox builds in a long time
<dhess> ok, thanks
<johnw> how do I turn those on again?
<dhess> nix.useSandbox = true
<dhess> supposedly works on 1.12 on Mac again. I think.
<johnw> so, I see this running here: /nix/store/44b41xb9kmn3i8fh22k2jdpcfx81v2lz-nix-unstable-1.12pre5810_5d5b931f/bin/nix-daemon
<dhess> I ask about sandboxed builds because I have a really strange thing going on where I have a nixpkgs-channels git submodule, and an overlay git submodule, and on 2 Macs I get the same evaluations.
<dhess> but on this 3rd Mac I installed today, I'm getting a slightly different one, and I can only imagine there's some kind of impurity creeping in somewhere.
<johnw> have you tried nix-diff?
<dhess> same git submodules etc.
<dhess> johnw: no, I only found out about that recently and haven't had a chance to try it yet. Maybe this is a good opportunity.
<dhess> good idea.
<johnw> dhess: I get: error: derivation '/nix/store/2z1hd6vpzq6kx8284pdrl8wx31w17rnm-user-environment.drv' specifies a sandbox profile, but this is only allowed when 'sandbox' is 'relaxed'
<johnw> ah, nix.useSandbox = "relaxed";
<dhess> hmm interesting. Here is LnL's `lnl.nix` config from nix-darwin: https://github.com/LnL7/nix-darwin/blob/ca5c600c7ade0080894823a26ef8252bed39d796/modules/examples/lnl.nix#L70
propumpkin has joined #nix-darwin
contrapumpkin has quit [Ping timeout: 240 seconds]
<johnw> well, i don't know what I did
<johnw> but I can't get to github.com anymore, and I can't rebuild my darwin environment. something quite seriously broke with this sandbox attempt
<johnw> (or the timing is suspicious)
<dhess> oh god :( I am so sorry
<dhess> can you roll back?
<johnw> no problem; does sandboxing change something?
<johnw> i'll just have to force turn off sandboxing in /etc/nix/nix.conf
<dhess> I am not certain exactly what it does on macOS now. As far as I know, it just tries to prevent the builders from reaching out of their build directory or the nix store to get dependencies
<johnw> what blocks me is the SIGABRT in the sandboxing stuff
<dhess> I believe that on macOS stdenv is constructed using *some* libs from your system
<dhess> that probably means it is trying to reach out anyway and getting slapped
<johnw> hmm.. even after editing nix.conf, it's still dying in sandboxing
<johnw> i'll try a rollback
<dhess> what about in /run/current-system/etc/nix ?
<dhess> and try restarting nix-daemon
<johnw> sweet!
<dhess> so that it sees the new config
<johnw> gotta love nix
<dhess> phew. I was feeling really guilty :)
<johnw> one thing I've found is that darwin-rebuild will stop a running LaunchDaemon service, but not restart it
<johnw> haven't figured that one out
<johnw> ah, internet is back
<dhess> really? How does it see the new config after you darwin-rebuild switch?
<dhess> I thought that was the whole point of the `services.nix-daemon.enable = true;` bit
<johnw> hmm
<johnw> dunno
<dhess> do you have that turned on?
<johnw> yes
<dhess> what is in your /etc/profile ?
<dhess> is there anything in there related to Nix?
<johnw> no
<johnw> just load /etc/bashrc
<johnw> exactly that
<dhess> then as far as I understand it, nix-darwin should be managing your nix-daemon process, including restarting it when needed. If that isn't happening I think you should talk to LnL about it and maybe file an issue
pjan_ has quit [Read error: Connection reset by peer]
philr has quit [Quit: WeeChat 2.0.1]
Biappi has quit [Ping timeout: 248 seconds]
pjan_ has joined #nix-darwin
pjan_ has quit [Client Quit]
pjan_ has joined #nix-darwin
periklis has joined #nix-darwin
shlevy has quit [Ping timeout: 252 seconds]
shlevy has joined #nix-darwin
<LnL> pjan_: hmm, that's the hostname thing
<pjan_> used to work. Maybe a rights issue, because your refactor is not changing any of the output
Biappi has joined #nix-darwin
<LnL> yeah, I did change the test but only quotes
periklis has quit [Ping timeout: 248 seconds]
__Sander__ has joined #nix-darwin
pjan_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has quit [Quit: hamishmack]
pjan_ has joined #nix-darwin
hamishmack has joined #nix-darwin
contrapumpkin has joined #nix-darwin
propumpkin has quit [Ping timeout: 268 seconds]
<copumpkin> allo
zzamboni has joined #nix-darwin
cstrahan has quit [Ping timeout: 252 seconds]
cstrahan has joined #nix-darwin
zzamboni has quit [Remote host closed the connection]
zzamboni has joined #nix-darwin
pxc has joined #nix-darwin
pxc has quit [Ping timeout: 246 seconds]
szicari has joined #nix-darwin
pjan_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pjan_ has joined #nix-darwin
pjan_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
prooftechnique has quit [*.net *.split]
ambrosia has quit [*.net *.split]
manveru has quit [*.net *.split]
dhess has quit [*.net *.split]
cransom has quit [*.net *.split]
ambrosia has joined #nix-darwin
prooftechnique has joined #nix-darwin
dhess has joined #nix-darwin
manveru has joined #nix-darwin
cransom has joined #nix-darwin
__Sander__ has quit [Quit: Konversation terminated!]
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
joepie91 has quit [*.net *.split]
joepie91 has joined #nix-darwin
joepie91 has joined #nix-darwin
ntucker has joined #nix-darwin
<qmm> will someone please help me with this? https://github.com/NixOS/nixpkgs/issues/33768
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
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
zarel has joined #nix-darwin
<pikajude> well, now that i have nix-daemon running, how do i stop runaway build processes?
<pikajude> can't just ^C them anymore
<contrapumpkin> doesn't nix-daemon kill them too, niksnut ?
<pikajude> well
<pikajude> they keep running
<pikajude> :thinking:
<contrapumpkin> yeah, just wondering if it's supposed to be killing them
<contrapumpkin> I thought it was
<pikajude> i would expect it to
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
zarel has quit [Quit: Leaving]
szicari has quit [Quit: szicari]
Sonarpulse has quit [Ping timeout: 264 seconds]
pjan_ has joined #nix-darwin
pjan_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<LnL> ^C only kills the client
<LnL> sudo killall -u nixbldXX works
<pikajude> oh
<pikajude> weird
<pikajude> bizarre
<LnL> hmm?