supersandro2000 has quit [Disconnected by services]
supersandro2000 has joined #nix-darwin
<aterius> LnL: macos connecting to non-nixos system
<aterius> abathur: ^
<aterius> I tried installing via nix-darwin and via home-manager with the same error message
<aterius> Ah wait, it seems to have to do with the server side
<abathur> I assume "non-nixos system" is a non-nixOS linux; can you try connecting from that system to your macOS? or connecting from the macOS to itself?
<aterius> It seems to be fine now, for some reason non-nixos linux using mosh installed via nix causes the error
<aterius> Yeah it reproduces with nix-env or home-manager on server side, sorry for false alarm
supersandro2000 has quit [Quit: The Lounge - https://thelounge.chat]
supersandro2000 has joined #nix-darwin
<aterius> Ah I figured it out
<aterius> mosh-server also needs to be wrapped with LOCALE_ARCHIVE, setting it in .profile or .zshenv doesn't seem to work
<antifuchs> aterius: when you do that, mind adding the PATH entry to the client wrapper as suggested in the issue linked above? That would fix two bugs in one go
<aterius> yeah I can
<aterius> I'm also debating in a separate PR bumping mosh to git head...
<aterius> because they haven't cut a release in a long time but added true color support
<antifuchs> amazing! <3
<aterius> I'm actually a bit confused by what the solution is to your issue
<aterius> You want to hard-code the path passed to the mosh binary?
LnL has quit [Quit: exit 1]
LnL has joined #nix-darwin
philr_ has joined #nix-darwin
philr has quit [Ping timeout: 240 seconds]
<antifuchs> Either that, or set the $PATH to contain the closure’s bin for?
<antifuchs> “Dir”
LnL has quit [Quit: exit 1]
LnL has joined #nix-darwin
johnw has quit [Quit: ZNC - http://znc.in]
<antifuchs> ooh, even better - the .mosh-wrapped program takes a `--mosh-client` argument, where you could pass the store derivation's path in from the wrapper program
<antifuchs> better yet, I have a patch that does what the ssh_path.patch does, just for mosh-client
<antifuchs> can submit independently (:
<{^_^}> #106876 (by antifuchs, 46 seconds ago, open): mosh: Hermeticize mosh-client path reference from mosh.pl
philr has joined #nix-darwin
philr_ has quit [Ping timeout: 260 seconds]
johnw has joined #nix-darwin
iH8c0ff33 has joined #nix-darwin
LnL has quit [Ping timeout: 260 seconds]
LnL- has joined #nix-darwin
gtklocker has quit [Ping timeout: 260 seconds]
gtklocker has joined #nix-darwin
iH8c0ff33 has quit [*.net *.split]
hedgie has quit [*.net *.split]
abathur has quit [*.net *.split]
bpye has quit [*.net *.split]
abathur has joined #nix-darwin
hedgie has joined #nix-darwin
iH8c0ff33 has joined #nix-darwin
bpye has joined #nix-darwin
<Mic92> LnL-: Does -static on macOS cause binaries to be built without dynamic-linker?
<Mic92> I am currently working on stdenv fixes.
<clever> Mic92: does darwin even allow static binaries at all?
<Mic92> clever: I don't know
<clever> i thought it was blocked by the kernel
<aterius> I don't think I'm going to make this PR since it turns out the problem can be solved by `adding export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive` to profile/zshenv
<aterius> I'm just going to add a note on the wiki
__monty__ has joined #nix-darwin
supersandro2000 has quit [Quit: Ping timeout (120 seconds)]
supersandro2000 has joined #nix-darwin
clever has quit [Ping timeout: 256 seconds]
iH8c0ff33 has quit [Ping timeout: 260 seconds]
iH8c0ff33 has joined #nix-darwin
<stephank> Hmm, launchd doesn't have something like EnvironmentFile, apparently. Is there a good way to add some secret env vars to nix-daemon?
iH8c0ff33 has quit [Ping timeout: 240 seconds]
iH8c0ff33 has joined #nix-darwin
iH8c0ff33 has quit [Ping timeout: 260 seconds]
iH8c0ff33 has joined #nix-darwin
iH8c0ff33 has quit [Ping timeout: 256 seconds]
iH8c0ff33 has joined #nix-darwin
<antifuchs> stephank: I believe you can make a launchd unit that sets environment variables globally on login, but if you want it restricted to a single process you may have to make a wrapper script and override the daemon executable
iH8c0ff33 has quit [Ping timeout: 240 seconds]
iH8c0ff33 has joined #nix-darwin
philr has quit [Ping timeout: 260 seconds]
<LnL-> Mic92: yeah no static linking, (at least for libc, etc.) static linking that with syscall wrappers broke the entire go world back when they did that
LnL- is now known as LnL
<Mic92> or would it just ignore -static on macOS?
<LnL> not sure
<LnL> if I try to compile a trivial thing with -static it completely barfs
<LnL> and there's essentially no way to build a static libc since all that stuff is bundled together in libSystem
<LnL> passing -dynamic-linker also barfs
kalbasit has joined #nix-darwin
iH8c0ff33 has quit [Ping timeout: 256 seconds]
pinecamp has joined #nix-darwin
pinecamp has quit [Remote host closed the connection]
iH8c0ff33 has joined #nix-darwin
iH8c0ff33 has quit [Ping timeout: 240 seconds]
iH8c0ff33 has joined #nix-darwin
iH8c0ff33 has quit [Ping timeout: 260 seconds]
clever has joined #nix-darwin
<Mic92> LnL: john merged it a bit faster than expected. But I have a follow up fix: https://github.com/NixOS/nixpkgs/pull/106925
<{^_^}> #106925 (by Mic92, 4 minutes ago, open): tests.cc-wrapper: disable static compilation macOS
iH8c0ff33 has joined #nix-darwin
iH8c0ff33 has quit [Ping timeout: 256 seconds]
philr has joined #nix-darwin
__monty__ has quit [Quit: leaving]