<johnw> until it's understood I guess I just can't override that function
<johnw> i'll have to manually expose criterion
philr has quit [Ping timeout: 264 seconds]
<dhess> johnw: do you have remote builders configured on your Mac?
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nix-darwin
Lisanna has quit [Remote host closed the connection]
nD5Xjz has quit [Ping timeout: 240 seconds]
nD5Xjz has joined #nix-darwin
Lisanna has joined #nix-darwin
philr has joined #nix-darwin
philr has quit [Ping timeout: 256 seconds]
<Enzime> does anyone know how to debug .app on macOS
<Enzime> when I open one it just closes
<Enzime> and can't figure out how to find the error messages
<LnL> what happens if you run the binary directly?
<LnL> like result/Applications/Foo.app/Contents/MacOS/Foo
alexteves has joined #nix-darwin
<Enzime> LnL: works fine
__Sander__ has joined #nix-darwin
<LnL> and the app bundle doesn't
<LnL> I remember app bundles not working if it has symlinks instead of folders
<Enzime> LnL: in this case, the binary is a symlink
<Enzime> but it's more like there's a symlink to a symlink
<Enzime> apparently the default mpv bundle
<Enzime> comes with mpv-bundle which is symlinked to mpv
<Enzime> so when I make mpv a symlink it doesn't work
philr has joined #nix-darwin
<tfc[m]> hey guys, after installing nix on my mac i see that `nix-channel --list` does not output anything. what is a good channel for mac that has most packages cached on the standard public nix binary cache?
Sonarpulse has joined #nix-darwin
philr has quit [Quit: WeeChat 2.1]
<clever> tfc[m]: run `sudo -i` then `nix-channel --list`
<tfc[m]> clever: ok, i did that with and without sudo and had no channel pre-configured.
<tfc[m]> what should i use?
<clever> tfc[m]: use `sudo -i` exactly, not `sudo nix-channel --list`
<tfc[m]> oh, i see. thanks!
<clever> apple sets the wrong $HOME when you use sudo
<LnL> yeah...
<LnL> Defaults env_keep += "HOME MAIL"
<tfc[m]> i use nixos a lot and start getting around nicely, but nix on macos is still quite confusing
__Sander__ has quit [Quit: Konversation terminated!]
johnw has quit [Remote host closed the connection]
danielhanson has joined #nix-darwin
<danielhanson> anybody there?
<danielhanson> looking to get nix running on a second osx box. Trying to make my dotfiles os agnostic but the install script is having issues. The ticket I looked at appears to be unresolved and wondering if anybody had run into something similar
<danielhanson> I have it working fine on another machine running osx so tryinng to figure out what is different
<LnL> hi
<LnL> what kind of issues?
<danielhanson> user nixbld9 already exists
<danielhanson> ---- oh no! --------------------------------------------------------------------
<danielhanson> It seems the build user nixbld9 already exists, but with the UID
<danielhanson> with the UID ''. This script can't really handle that right
<danielhanson> now, so I'm going to give up.
<danielhanson> I was looking at the ticket earlier where somebody was having a similar issue. I'll try to dig it up
Sonarpulse has quit [Ping timeout: 276 seconds]
<danielhanson> This isn't the first install on this machine though so it could be the script has changed or that I didn't completely remove all traces of the previous install
<LnL> hrm
<LnL> dscl . -read /Users/nixbld9 UniqueID
<LnL> what does that look like?
<danielhanson> dscl . -read /Users/nixbld9 UniqueID 146 ↵
<danielhanson> No such key: UniqueID
<LnL> that's definitively not normal, let me look at the installer
<danielhanson> the 146 is part of the ohmyzsh status bar
<LnL> could you paste the full output of that (without UniqueID) somewhere
<LnL> I wonder how it could have ended up in this state
<danielhanson> having issues pasting
<danielhanson> vim-tmux-navigator stole ctrl-K
<LnL> dscl . -read /Users/nixbld9 | pbcopy
<LnL> or is that user namespace stuff still an issue in tmux by default
<danielhanson> it's copied but irssi want me to hit ctrl-K to paste
<LnL> put it in a gist or something
<LnL> it even configured other stuff like the RealName...
<LnL> was expecting a partially created user, but that doesn't seem to be the case
<LnL> ^ gchristensen
<LnL> what about nixbld10?
johnw has joined #nix-darwin
<danielhanson> I have a bash script I was using to install everything but nix-env wasn't found when I ran it on this machine so missed something so tried removing all traces of nix and running it again
<danielhanson> trying nixbld10 now
<danielhanson> I'll post it in the same gist
<LnL> and does id 30009 return a user?
<danielhanson> id -nu 30009 127 ↵
<danielhanson> id: 30009: no such user
<johnw> LnL: ping
<LnL> pong
<johnw> so, another weird one in the same vein as yesterday
<johnw> when I evaluate this:
<johnw> nix-instantiate --eval --expr '(import <darwin> {}).pkgs.haskell.packages.ghc822.enclosed-exceptions.version'
<johnw> I get 1.0.3, because I have the following override:
<johnw> enclosed-exceptions = super.enclosed-exceptions_1_0_3;
<johnw> however, when I run this:
<johnw> build --keep-going darwin.system
<johnw> it tries to build enclosed-exceptions 1.0.2, which fails because the tests are broken
<johnw> why/how is it using 1.0.2 in that case?
<johnw> does darwin.system not take into account the pkgs overlays?
<johnw> hmm.. my hakyll override seems to have taken effect though
<johnw> oh, n/m
<johnw> i mean, hakyll isn't fixed
<johnw> oh, weird, git-annex is saying git does not exist when I set strictDeps = true
<LnL> danielhanson: so, do nixbld8 and nixbld10 exist and/or have an UniqueID?
<danielhanson> I'm seeing UniqueID for both
<danielhanson> the is a JPEGPhoto: for nixbld8
<danielhanson> bizarre
<danielhanson> I'll post that in the gist
<danielhanson> it's posted now
<danielhanson> I'll have to reconsider current flow if I'm going to use irssi in tmux which is kind of one of the main reasons to use irssi
<LnL> well so I have no idea how it ended up like this but I'd try dscl . -read /Users/nixbld9 and running the installer again
<LnL> err, dscl . -delete /Users/nixbld9
<danielhanson> ok thanks
<danielhanson> trying that now
<danielhanson> what would be best way to remove everything if I wanted to remove all traces and run the script again on the same system?
<danielhanson> I obviously skipped a few steps this last time
<LnL> doesn't the installer give instructions?
<danielhanson> I thought so but didn't give much help this last timme with the build users
<danielhanson> I'll do some searching
Sonarpulse has joined #nix-darwin
<danielhanson> it did run completely this time so got past this obstacle
<danielhanson> thanks!
<LnL> so you have a fully operational setup now?
<danielhanson> it was before but was using homebrew
<danielhanson> which I'm trying to ween myself off
<LnL> great, but that's interesting
<danielhanson> actually, the script ran but nix-env isn't available yet even on a new window
<LnL> what kind of install does homebrew do?
<danielhanson> I'm not brew installing nix
<danielhanson> I've just been using it until now for package management on osx
<danielhanson> I ran the nix install script
<danielhanson> curl https://nixos.org/nix/install | sh
<LnL> do you see nix stuff in PATH
<LnL> and what about grep nix /etc/bashrc?
<danielhanson> I'm using zsh
<danielhanson> looking now
<danielhanson> grep nix /etc/zshrc 130 ↵
<danielhanson> if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
<danielhanson> . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
<LnL> ok, then unless nix-daemon.sh doesn't exist it's probably your dotfiles overwriting PATH
<danielhanson> yeah looking at that now
<danielhanson> I removed my original entry setting the path but something is still clobbering it I think
<danielhanson> I'm good noow
<danielhanson> s/noow/now
<danielhanson> thanks
<johnw> LnL: any ideas on overlays not being applied?
<johnw> i'm hitting this with a hammer in several places and still enclosed-exceptions 1.0.2 is being used, not 1.0.3
<LnL> thought you said nevermind
<johnw> no, that was only to the very last comment
<johnw> when I turn strictDeps on for git-annex, it now can't find the git executable too
<johnw> even though I overrideAttrs and forcibly add it to the buildInputs
<johnw> that's what I'm using
<johnw> if you search for 'shelly' in there, you'll see where I'm trying to make a difference
<johnw> it seems to have worked for hakyll
<johnw> I think
<johnw> 'otherHackagePackages' is an overlay that gets applied to all the GHC versions that I use
<johnw> oh
<johnw> the ordering is what's causing the problem for enclosed-exceptions
<johnw> hmm
<johnw> no, shuffling things around in overrideHask didn't change anything; I spoke too soon
<LnL> can't reproduce with a simple example
<LnL> and git-annex, I'm pretty sure that's _because_ of strictDeps
<LnL> I think I didn't realise what that actually was until this morning
<LnL> try nativeBuildInputs = attrs.nativeBuildInputs ++ [ self.git ];
<LnL> yeah
<johnw> cool, trying
<LnL> it forces using buildInputs/nativeBuildInputs correctly instead of making them equivalent for native builds
<johnw> didn't help
<johnw> "checking version...sh: git: command not found"
<LnL> huh
<LnL> nix-repl> :b haskellPackages.git-annex.overrideAttrs (drv: { strictDeps = true; }) # => git ... exec: does not exist
<johnw> LnL: ok, I'm beginning to think that my enclosed-exceptions problem now is the same as our default.nix not using overlays
<LnL> nix-repl> :b haskellPackages.git-annex.overrideAttrs (drv: { strictDeps = true; nativeBuildInputs = [ git ] ++ drv.nativeBuildInputs; })  # => building....
<johnw> because this project that depends on shelly (where I need to be using the overlaid shelly) is using callCabal2nix
<LnL> oh, well callCabal2nix is one of the things that does the weird IFD
<johnw> yeah
<johnw> and I have a feeling it's just using plain nixpkgs
<johnw> not my personal darwin.pkgs
<LnL> can you try using a generated cabal2nix expression instead
<johnw> yeah, one sec
<johnw> oh wait
<johnw> there *was* a default.nix
<LnL> from what I can tell that's all it does, generate one at eval time
<johnw> and note that in 10-haskell.nix, I pass my overlay's 'self' parameter for the 'pkgs' argument
<LnL> btw
<LnL> this might also be a nix bug with IFD
<johnw> also:
<johnw> nix-repl> :l <darwin>
<johnw> wait...
<LnL> but I don't understand everything that's going on so it's a bit too hard to figure out
<johnw> you might need to replicate my environment to see furhter
<johnw> there's a lot of layers in 10-haskell.nix
<johnw> from nix repl this works
<johnw> this is what I have in my overlay:
<johnw> git-annex = super.git-annex.overrideAttrs (attrs: { strictDeps = true; nativeBuildInputs = attrs.nativeBuildInputs ++ [ self.git ]; });
<johnw> hmm
<johnw> changing that to
<johnw> nativeBuildInputs = [ super.git ] ++ attrs.nativeBuildInputs;
<johnw> made a difference
<LnL> haskellPackages.git #=> /nix/store/chh9fcrm0fqil6yncsv3hxc865qiyl66-git-0.2.1.drv
<LnL> that's not pkgs.git
<johnw> right
<johnw> well, I have a quick way on my side to reproduce this
<johnw> nix-build '<darwin>' -A pkgs.haskellPackages.enclosed-exceptions
<johnw> build 1.0.3
<johnw> builds*
<johnw> nix-build '<darwin>' -A pkgs.haskellPackages.git-all
<johnw> builds 1.0.2
<johnw> it must be my definition of callPackage that's wrong
<johnw> interesting
<johnw> git-all's default.nix has its own override
<johnw> in which it references super.enclosed-exceptions
<johnw> I wonder why that isn't my overlaid enclosed-exceptions
<johnw> LnL: if git-all's default.nix uses haskellPackages'.enclosed-exceptions, then it works
<johnw> but when it uses super...
<johnw> oh
<johnw> of course
<johnw> I'm overriding the overrides parameter to haskellPackages
<johnw> which is throwing away my overlays!
<johnw> i need a safe way of compsing a local overlay into the existing overrides
<johnw> which developPackage does do, but I thought there were cases where it didn't work
<johnw> anyway, thanks for your time
danielhanson has quit [Quit: leaving]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johnw_ has joined #nix-darwin
johnw has quit [Ping timeout: 276 seconds]
alexteves has quit [Remote host closed the connection]
<johnw_> LnL: can you build this: nix-build '<darwin>' -j1 -A pkgs.haskell.packages.ghc822.ListLike
hamishmack has joined #nix-darwin