Lisanna has quit [Remote host closed the connection]
pjan has quit [Quit: さようなら]
pjan has joined #nix-darwin
<johnw> this is a new error from git push: ModuleNotFoundError: No module named 'xdg'
<johnw> ah, pass-git-helper is something I installed
<johnw> pyxdg is a buildInputs, but I need to encode the PYTHONPATH
<johnw> LnL: do you know what's wrong with this declaration in launchd.daemons: https://gist.github.com/6976aca68d77fc5d69b759a71ece9447
<johnw> I'm getting: error: The option value `launchd.daemons.locate.serviceConfig.StartCalendarInterval' in `/Users/johnw/src/nix/config/darwin.nix' is not of type `null or list of submodules'.
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nix-darwin
{^_^} has quit [Changing host]
{^_^} has joined #nix-darwin
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nix-darwin
{^_^} has quit [Changing host]
{^_^} has joined #nix-darwin
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nix-darwin
{^_^} has quit [Changing host]
{^_^} has joined #nix-darwin
<jtojnar> what package provides killall on darwin?
<contrapumpkin> shell_cmds
<contrapumpkin> not sure it works properly
<contrapumpkin> there is a package for it but I think it's broken by a weird xcbuild behavior
<disasm> Thanks LnL, that sudo behavior on OSX was the problem :)
sphalerite_ has joined #nix-darwin
<sphalerite_> Hi folks. Does anyone use nix to build and package macos applications bundles that run independently of nix?
<LnL> what do you mean?
<pjan> sphalerite: I do; I have custom overlays for a bunch of macos applications. These apps live in my nix store.
<sphalerite_> LnL: build an application bundle, the kind that you often find in dmgs, that you can then give to other people and they can just run it
<sphalerite_> pjan: do they work when moved out of the nix store?
nostate has joined #nix-darwin
nostate has quit [Ping timeout: 248 seconds]
<pjan> I don't know what you mean? They are in my nix store, but I can use them on my system (e.g. they turn up in spotlight like any other app)
<sphalerite_> pjan: can you stick them in a zip and send that to another macos user for them to run?
<sphalerite_> another macos user who doesn't have nix that is
the-kenny-w has joined #nix-darwin
the-kenny has quit [Ping timeout: 264 seconds]
elasticdog has quit [Ping timeout: 264 seconds]
elasticdog has joined #nix-darwin
<pjan> spalerite can you describe your usecase? I have the .app file sitting in my /nix/store, so I could get it there and zip it. I get them from the net in a dmg usually, which is just an alternative container like zips are.
Guest18665 has joined #nix-darwin
<Guest18665> Hello, I've been going through Nix Pills on my mac. But now I'm stuck on pill 8 and not sure how to get it to work.
<Guest18665> Trying to create a generic builder for GNU hello: https://nixos.org/nixos/nix-pills/generic-builders.html#idm140737316239936
<Guest18665> I end up getting this error in the configure step:
<Guest18665> checking for gcc... gcc checking whether the C compiler works... no configure: error: in `/private/tmp/nix-build-hello.drv-0/hello-2.10': configure: error: C compiler cannot create executables See `config.log' for more details
<Guest18665> Looking at config.log, I see a message that says "/nix/store/02qfaf84w3j9p2yqm9isn5mh8zzz846a-gcc-wrapper-6.4.0/bin/as: assembler (clang) not installed"
<Guest18665> I tried adding clang, but now I'm seeing the same failure with "collect2: fatal error: cannot find 'nm'" in config.log
<Guest18665> What's weird is that binutils-unwrapped should include that
<Guest18665> Turns out nix didn't create a "binutils_unwrapped" env variable. I removed `inherit binutils-unwrapped` and replaced it with `binutils_unwrapped = binutils-unwrapped` and that fixed that issue
<Guest18665> But it's still not building :(
<Guest18665> Now it fails with `ld: symbol(s) not found for architecture x86_64`
<LnL> sphalerite_: oh you mean like nix-build -> dmg
<LnL> Guest18665: on darwin we use clang instead of gcc, currently using gcc like that directly doesn't work
<Guest18665> LnL: Thank you. I'll remove gcc and use clang instead
<Guest18665> LnL: For the "inherit binutils-unwrapped" issue, do you know if this is working as intended or a bug?
<LnL> oh sorry only read half of that :)
<LnL> that looks like a bug in the example
<Guest18665> Oh cool
nostate has joined #nix-darwin
<LnL> instead of inherit that should probably be binutils = binutils-unwrapped; or something like that
<Guest18665> Yes, that is what I ended up doing
<Guest18665> But I assumed it worked on linux since that's what the pill said
<Guest18665> I'm still getting the same ld error even after removing gcc and using clang instead
<LnL> the main thing to take away from that chapter is how stdenv.mkDerivation works in principle, you wouldn't want to use derivation directly except for some very specific cases
<nostate> Where does home-manager store things?
<Guest18665> Yes, but I thought it would be nice to still try to actually use it
<LnL> the actual implementation is a lot more complex because it can deal with different compilers, platforms, etc.
<nostate> For instance, I added some git configuration for name and email. It's working, but I don't see .gitconfig anywhere.
<nostate> Where does it put that information?
<LnL> yeah, I understand just saying that it's probably not worth fixing the example to work on every platform since then it's so confusing new people won't understand :)
<LnL> but binutils_unwrapped is definitively wrong
<Guest18665> Yes of course
<Guest18665> Makes sense
<Guest18665> I'm hoping that by debugging this I will learn to debug more serious issues later on :)
<Guest18665> This is what I have so far http://nixpaste.lbr.uno/OzSpUN28
<LnL> nostate: do you mean ~/.gitconfig or it's source?
philr has joined #nix-darwin
<LnL> Guest18665: ah, try adding libcxx on linux libstdc++ is part of gcc
<nostate> LnL: After adding those git options to home-manager and doing "home-manager switch" I don't see a file ~/.gitconfig.
<nostate> But it works
<LnL> Guest18665: in the real stdenv buildInputs are not only added to PATH but -I$foo/include is also added to CFLAGS
<Guest18665> LnL: Thanks I'll try that
<nostate> johnw: What's the top-level entry point for your nix config setup? i.e. how do you use that repo to get up and running initially?
<Guest18665> LnL: Still didn't work. I also tried adding gettext and libiconv include files but I get the same issue
<Guest18665> LnL: I think at this point I'll just give up on getting this example to work, but thank you so much for your help :)
<sphalerite_> LnL: yes pretty much
<sphalerite_> pjan: yeah I want to use nix to build software for distribution to users
Guest18665 has quit [Ping timeout: 260 seconds]
nostate has quit [Ping timeout: 256 seconds]
nostate has joined #nix-darwin
philr has quit [Ping timeout: 248 seconds]
<nostate> How do I do arbitrary file definitions with home-manager?
<nostate> ...like we se here ''
<nostate> set sendmail="${msmtp}/bin/msmtp";
<nostate> er
<nostate> When I try that I get this error:
<nostate> error: syntax error, unexpected IND_STRING_OPEN, expecting '.' or '='
<LnL> if that's supposed to be a path you need to prefix it with ./
<nostate> I don't think it is.
<nostate> I think it's supposed to be a string.
<nostate> And that string will be used to create a file with that name in the home directory.
<clever> ".mbsyncrc".source = mail/mbsyncrc;
<clever> you appear to be trying to divide a variable by a variable
<clever> and neither variable is defined
<clever> defenitely looks like a missing ./
<nostate> clever: I'm pretty sure that's not the case. That link isn't my stuff. It's someone else's. I tried this just now:
<nostate> ".tmux.conf".source = ./tmux.conf;
<LnL> what do you expect the content of ~/.tmux.conf to be?
<nostate> LnL: I'm assuming that home-manager will take whatever is in tmux.conf and put it in ~/.tmux.conf
<nostate> Not sure why it's not working.
<LnL> it should be ./tmux.conf then or "/path/to/existing/file"
<nostate> LnL: That doesn't work either.
<nostate> Although I don't think that's what's going on here.
dmj` has joined #nix-darwin
* dmj` pokes in
<clever> dmj`: thats a fairly long brb
<dmj`> clever: heh :)
<clever> dmj`: i had to put lenses in to fix that code :P
<dmj`> clever: slick :)
<dmj`> lens is always the right answer
<dmj`> clever: can you PM me link
<pjan> sphalerite nix build for those overlays creates a result folder, with Applications, and the .app inside that folder. Should fit your usecase
<johnw> nostate: hi
<johnw> nostate: the entry point is to set NIX_PATH=darwin-config=/Users/johnw/src/nix/config/darwin.nix:home-manager=/Users/johnw/src/nix/home-manager:darwin=/Users/johnw/src/nix/darwin:nixpkgs=/Users/johnw/src/nix/nixpkgs and then run ~/src/nix/darwin/bootstrap.sh and then darwin-rebuild switch
<johnw> then I can run home-manager switch, and then use nix-env -i to install my user specific myEnvFun environments