<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>
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 :)
<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