jrolfs has joined #nix-darwin
jrolfs has quit [Ping timeout: 240 seconds]
chrisbarrett has joined #nix-darwin
philr has joined #nix-darwin
jrolfs_ has quit [Ping timeout: 264 seconds]
chrisbarrett has quit [Ping timeout: 246 seconds]
chrisbarrett has joined #nix-darwin
jrolfs_ has joined #nix-darwin
jrolfs has joined #nix-darwin
jrolfs has quit [Ping timeout: 240 seconds]
jrolfs_ has quit [Ping timeout: 240 seconds]
chrisbarrett has quit [Ping timeout: 246 seconds]
jrolfs has joined #nix-darwin
jtojnar has quit [Ping timeout: 256 seconds]
jrolfs_ has joined #nix-darwin
jrolfs has quit [Ping timeout: 246 seconds]
jrolfs has joined #nix-darwin
jrolfs_ has quit [Ping timeout: 240 seconds]
jrolfs has quit [Ping timeout: 255 seconds]
jrolfs has joined #nix-darwin
jrolfs has quit [Ping timeout: 256 seconds]
jrolfs has joined #nix-darwin
jrolfs has quit [Ping timeout: 250 seconds]
jrolfs has joined #nix-darwin
jrolfs has quit [Ping timeout: 250 seconds]
jrolfs has joined #nix-darwin
jrolfs has quit [Ping timeout: 246 seconds]
jrolfs has joined #nix-darwin
jrolfs has quit [Ping timeout: 255 seconds]
jrolfs has joined #nix-darwin
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrolfs has quit [Ping timeout: 250 seconds]
jrolfs has joined #nix-darwin
peel[m] has quit [*.net *.split]
philr has quit [Quit: WeeChat 2.1]
jtojnar has joined #nix-darwin
hamishmack has joined #nix-darwin
jrolfs has quit [Ping timeout: 240 seconds]
jrolfs has joined #nix-darwin
Sonarpulse has quit [Ping timeout: 250 seconds]
Sonarpulse has joined #nix-darwin
jrolfs has quit [Ping timeout: 255 seconds]
jrolfs has joined #nix-darwin
jrolfs_ has joined #nix-darwin
angerman has quit [Excess Flood]
angerman has joined #nix-darwin
peel[m] has joined #nix-darwin
peel[m] has quit [Ping timeout: 240 seconds]
puffnfresh has quit [Ping timeout: 256 seconds]
copumpkin has quit [Ping timeout: 255 seconds]
codyopel has quit [Ping timeout: 240 seconds]
dtz has quit [Ping timeout: 269 seconds]
nD5Xjz has quit [Ping timeout: 260 seconds]
sellout-1 has quit [Ping timeout: 260 seconds]
thefloweringash[ has quit [Ping timeout: 256 seconds]
nD5Xjz has joined #nix-darwin
tfc[m] has quit [Ping timeout: 260 seconds]
sellout- has joined #nix-darwin
peel[m] has joined #nix-darwin
thefloweringash[ has joined #nix-darwin
copumpkin has joined #nix-darwin
dtz has joined #nix-darwin
codyopel has joined #nix-darwin
puffnfresh has joined #nix-darwin
tfc[m] has joined #nix-darwin
qqlq has quit [Ping timeout: 248 seconds]
sellout- has quit [Ping timeout: 256 seconds]
sellout- has joined #nix-darwin
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nix-darwin
jrolfs has quit [Ping timeout: 240 seconds]
jrolfs has joined #nix-darwin
jrolfs_ has quit [Ping timeout: 260 seconds]
jrolfs has quit [Ping timeout: 260 seconds]
chrisbarrett has joined #nix-darwin
jrolfs has joined #nix-darwin
chrisbarrett has quit [Ping timeout: 240 seconds]
jrolfs has quit [Ping timeout: 240 seconds]
Sonarpulse has quit [Ping timeout: 246 seconds]
jrolfs has joined #nix-darwin
Sonarpulse has joined #nix-darwin
chrisbarrett has joined #nix-darwin
chrisbarrett has quit [Ping timeout: 240 seconds]
jrolfs has quit [Quit: WeeChat 2.1]
mightybyte has joined #nix-darwin
<mightybyte> I just reinstalled nix on my mac and I'm getting "org.nixos.nix-daemon.plist: service already loaded"
<gchristensen> is there a tool available in nixpkgs for manipulating a plist, like adding a key?
<mightybyte> No idea
<gchristensen> can you provide more log? it might be fine
<LnL> removing the plist won't disable the service
<mightybyte> I did "launchctl stop" on nix-daemon before installing.
<gchristensen> the installer should have also instructed you to do sudo launchctl unload /Library/LaunchDaemons/org.nixos.nix-daemon.plist
<mightybyte> Oh. I might have missed that.
<gchristensen> :( disappointing. I wonder how it could be better?
<mightybyte> Let me see.
<mightybyte> This time I blew everything away including the *.backup-before-nix files but did not stop the nix daemon
<mightybyte> ...and when I ran the installer I got the same plist error
<mightybyte> And "Jeeze, something went wrong..."
<mightybyte> It didn't tell me anything about unload
<LnL> gchristensen: anything that can manipulate xml
alexteves has joined #nix-darwin
<alexteves> any idea where I need to add NIX_GITHUB_PRIVATE_USERNAME to in nix 2.0? I managed to get private fetchFromGithub working by adding it to /Library/LaunchDaemons/org.nixos.nix-daemon.plist and relaunching the daemon on nix 1.x, but now I'm on 2.0 and
<alexteves> well, and it's not working
<mightybyte> alexteves: Run these commands
<mightybyte> sudo launchctl setenv NIX_GITHUB_PRIVATE_USERNAME <github-username>
<mightybyte> sudo launchctl setenv NIX_GITHUB_PRIVATE_PASSWORD <github-access-token>
<mightybyte> sudo launchctl stop org.nixos.nix-daemon
<mightybyte> sudo launchctl start org.nixos.nix-daemon
<mightybyte> First you have to create an access token on github though.
<mightybyte> To do that, follow these steps:
<alexteves> oh I have the acess token
<mightybyte> Ok
<mightybyte> But I prefer to avoid this altogether.
<mightybyte> ...by using builtins.fetchGit, which uses your SSH keys
<mightybyte> builtins.fetchGit {
<mightybyte> url = "ssh://git@github.com/<github-user>/<github-package>.git";
<mightybyte> ref = "master";
<mightybyte> # This rev must be on the above branch ref
<mightybyte> rev = "96f4b110a177cb1876632852a498c20bc8a3878c";
<mightybyte> };
eacameron has joined #nix-darwin
<mightybyte> The docs for fetchGit are not easy to understand. It took me quite awhile to figure that out.
alexteve_ has joined #nix-darwin
alexteves has quit [Ping timeout: 260 seconds]
<alexteve_> mightybyte: that worked, thanks
<alexteve_> I guess that'd also be needed for non-nixos linuxes?
<mightybyte> Which?
<mightybyte> I think fetchGit is the best solution because it leverages the ssh key infrastructure that pretty much all developers will already be using instead of requiring them to add this special access token.
<alexteve_> I used launchctl setenv
<LnL> yeah, it uses git locally so it doesn't need to be configured separately
alexteve_ has quit [Quit: Textual IRC Client: www.textualapp.com]
alexteves has joined #nix-darwin
<eacameron> haskell.lib.linkWithGold doesn't work on MacOS AFAICT. Anyone know how to get it working?
<eacameron> Can't find `ld.gold`.
<mightybyte> eacameron: Ooh yeah, I would like that too.
Sonarpulse has quit [Ping timeout: 255 seconds]
Sonarpulse has joined #nix-darwin
<eacameron> Does mac-darwin have a solution for managing Xcode SDKs?
<eacameron> Other than requiring manual download/install?
<LnL> depends what you need, we do have most of the parts that make up the sdk
mightybyte has left #nix-darwin [#nix-darwin]
<alexteves> we basically want to have reflex-platform handle all the iphoneos.sdk stuff via nix
<alexteves> it's a major pain point for people to use right now
<elvishjerricco> eacameron: Any chance we could have linkWithLLD instead? I remember hearing reports that lld is way faster than gold
<eacameron> I remember that too
<eacameron> I imagine if I could get gold working then lld would be easy
<eacameron> or vice versa
<elvishjerricco> Yea. That'd be worth a shot.
chrisbarrett has joined #nix-darwin
<elvishjerricco> eacameron: It's weird that Darwin just doesn't have an ld.gold though. Sonarpulse do you know why that is?
<Sonarpulse> elvishjerricco: it doesn't use either GNU ld
<Sonarpulse> gold or bfd ld
<Sonarpulse> it uses its own ld
<elvishjerricco> Oh. What's the reason for that?
<Sonarpulse> elvishjerricco: it's broken in GNU land
<Sonarpulse> nobody bothered to fix it
<elvishjerricco> gross
<Sonarpulse> elvishjerricco: that tapi stuff could well reignite LLD + darwin energy
<Sonarpulse> just sayin' :)
<elvishjerricco> alexteves, eacameron: Does the SDK have to be in a particular place on macOS? Or can it just be in the Nix store?
<alexteves> I'm not sure really
<alexteves> I mean
<alexteves> at the very least it can be in the nix store, with a symlink to it in a particular place
<elvishjerricco> Well sure but if it can just be in the nix store without having to mess with the user's file system, that might be better.
<alexteves> I'm not yet sure what is and what isn't hardcoded
<alexteves> looking into it tomorrow
<alexteves> there's a xcode-select command which lets you give it the path to some xcode
<alexteves> but it looks like it changes a global setting
chrisbarrett has quit [Ping timeout: 256 seconds]
chrisbarrett has joined #nix-darwin
<alexteves> and then the xcrun command searches inside that xcode
<alexteves> oh there's an env var for that
<alexteves> DEVELOPER_DIR=~/Downloads/Xcode\ 9.2/Xcode.app/Contents/Developer xcrun -sdk iphoneos --show-sdk-path
<alexteves> DEVELOPER_DIR=~/Downloads/Xcode\ 9.1/Xcode.app/Contents/Developer xcrun -sdk iphoneos --show-sdk-path
<alexteves> ugh, irc interpreted root paths as commands
<alexteves> DEVELOPER_DIR=~/Downloads/Xcode\ 9.2/Xcode.app/Contents/Developer xcrun -sdk iphoneos --show-sdk-path
<alexteves> /Users/alexandreesteves/Downloads/Xcode 9.2/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk
<alexteves> looks like it can live in the nixstore after all
<alexteves> afk
<elvishjerricco> alexteves: Sweet!
chrisbarrett has quit [Ping timeout: 240 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chrisbarrett has joined #nix-darwin
chrisbarrett has quit [Ping timeout: 240 seconds]
chrisbarrett has joined #nix-darwin
<eacameron> alexteves: Very nice!
<eacameron> LnL: Does nix-darwin do this kind of thing already? ^
Lisanna has joined #nix-darwin
hamishmack has joined #nix-darwin
Sonarpulse has quit [Ping timeout: 276 seconds]