pxc has quit [Quit: WeeChat 2.3]
carlosdagos has joined #nix-darwin
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nix-darwin
clever has quit [Ping timeout: 252 seconds]
trcc has joined #nix-darwin
kaychaks[m] has joined #nix-darwin
<kaychaks[m]> `nix-shell -p haskell.compiler.ghc862` (same happening for 861 but 844 is fine) is failing with error `ValueError: unknown locale: UTF-8`. My env vars for `LC_ALL, LANG, LC_CTYPE` are all `en_US.UTF-8` (which is the common sol. I found with some quick Google searches). I think its failing during installation. here is the relevant log https://gist.github.com/kaychaks/cebf8c9edba85744f04fbadce87b4aa5
trcc has quit [Remote host closed the connection]
trcc has joined #nix-darwin
trcc has quit [Ping timeout: 246 seconds]
trcc has joined #nix-darwin
trcc has quit [Ping timeout: 268 seconds]
trcc has joined #nix-darwin
<LnL> yeah, the fix is in staging
trcc has quit [Ping timeout: 272 seconds]
trcc has joined #nix-darwin
<kaychaks[m]> LnL: is there any workaround till the fix comes to master ?
<wildsebastian> kaychaks[m]: You could deactivate running the tests for the docutils python package. That's the easiest fix. Otherwise you could just take the fix from the pull request.
__Sander__ has joined #nix-darwin
trcc has quit [Remote host closed the connection]
trcc has joined #nix-darwin
trcc has quit [Remote host closed the connection]
trcc has joined #nix-darwin
trcc_ has joined #nix-darwin
trcc has quit [Ping timeout: 246 seconds]
trcc_ has quit [Ping timeout: 250 seconds]
trcc has joined #nix-darwin
trcc has quit [Remote host closed the connection]
<gchristensen> one problem with my macos vms on nixos is they stall somewhere around here gsc.io/scratch/2018-11-28T14:09:30Z-selection-9cdb1624-9efa-42b5-a783-7d1101d47b45.png about 50% of the time
clever has joined #nix-darwin
<cransom> wonder if you could flip the boot verbosity and see where that happens
<gchristensen> can you?
<cransom> 'maybe'? i guess it's an nvram setting that will let you do it rather than holding a button at boot
<cransom> http://osxdaily.com/2007/03/25/always-boot-mac-os-x-in-verbose-mode/ 11 year old information may not be accurate.
<gchristensen> what is the boot button?
<cransom> cmd-v
<gchristensen> hmm
<gchristensen> is Cmd like Windows key?
<cransom> it is the same, iirc
<cransom> the boot process for the vms, is it done by clover or something? i bet there are flags you can set for that
<gchristensen> yeah clover
<gchristensen> way to go!
<cransom> cool. hopefully more interesting than a stalled progress indicator at least.
<cransom> nice.
<gchristensen> "Shortly DSMOS stands for Don’t Steal Mac OS X"
<cransom> haaaa.
<gchristensen> I'm not stealing :(
<cransom> wonder what happens in the boot order where it sometimes thinks it's not genuine
<gchristensen> yea...
__Sander__ has quit [Quit: Konversation terminated!]
<cransom> interesting.
trcc has joined #nix-darwin
<johnw> can I force macOS to only consider .dylibs from a specific directory?
<gchristensen> I don't think so
<gchristensen> I think that has been a frustrating thing about making Nix as nice on darwin as on Linux
<johnw> i'm trying to write a script which, when given an executable in the /nix/store, populates a directory with files so that this executabel can be run standalone on any other Mac
<johnw> right now I'm dealing with a ton of: objc[69132]: Class NWConcrete_nw_path_evaluator is implemented in both /usr/lib/system/libsystem_network.dylib (0x7fffb50d7e50) and /Users/johnw/Downloads/foo/./31.dylib (0x1051f3e50). One of the two will be used. Which one is undefined.
<LnL> there's DYLD_LIBRARY_PATH, similar to LD_LIBRARY_PATH on linux
<johnw> DYLD_LIBRARY_PATH=$PWD ./foo doesn't change anything
<johnw> that's my script
<johnw> I'm trying to build tmux, as an example
<LnL> works fine here
<LnL> DYLD_LIBRARY_PATH=$(pwd)/foo DYLD_PRINT_LIBRARIES=1 foo/curl |& grep foo
<LnL> dyld: loaded: /src/nixpkgs/foo/curl
<LnL> dyld: loaded: /src/nixpkgs/foo/libkrb5support.1.1.dylib
<LnL> I just copied a random library over
trcc has quit [Remote host closed the connection]
<LnL> same with patching @executable_path, but that only works for direct dependencies
<johnw> can you try using my script on curl?
trcc has joined #nix-darwin
<johnw> just: bash script.sh $(which curl) foo
<johnw> i need the executable to fully independent of the /nix/store or /usr/lib
<LnL> the id part isn't even necessary if you don't want to link against it afterwards
<johnw> cool
<johnw> it's sad that darwin doesn't allow fully static binaries
<johnw> also, your example worked because you didn't move over one of the libraries that an objective-c framework is using
<johnw> try it with libsystem_network.dylib, for example
<LnL> ah yeah for frameworks it's DYLD_FRAMEWORK_PATH
<LnL> oh
<LnL> really?
<johnw> nope, that doesn't help either
trcc has quit [Ping timeout: 250 seconds]
<LnL> also works here
<johnw> did you try my script?
<johnw> also, could I directly invoke the system loader, the way that you can on Linux?
<LnL> no it fails
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<LnL> (your script)
<johnw> i think that's because we have duplicates of some of the libsystem_* libraries in /nix/store, at different versions from what's in /usr/lib
<johnw> anyway, on Linux this is solved by directly using ldd --library-path=$PWD
<johnw> also: "Variables LD_LIBRARY_PATH / DYLD_LIBRARY_PATH are ignored on MAC OS if System Integrity Protect (SIP) is enable."
<LnL> $ csrutil status # System Integrity Protection status: enabled.
<LnL> for signed binaries maybe
__Sander__ has joined #nix-darwin
hamishmack has joined #nix-darwin
<johnw> is there a way to point nix-store --export at a file of inputs, rather than passing on the command-line?
<johnw> there are too many arguments
__Sander__ has quit [Ping timeout: 250 seconds]
__Sander__ has joined #nix-darwin
<johnw> is there a guide for setting up a signing key with the new "nix copy"?
<johnw> i've made a key, but don't know how to get my Nix to sign things with it, or the remote to use it for authentication
<johnw> the docs say how to generate a key, but not how to use it
<johnw> in other news, pandoc is now broken on master for darwin
<LnL> secret-key-files in nix.conf
<LnL> and trusted singning keys on the other side
<johnw> hmm.. but even after signing, I still get "it lacks a valid signature"
<johnw> I've run: nix sign-paths -v -k ~/.config/gnupg/nix-signing-key.sec /nix/store/0bpajc4r3vpwqjqlai9i363mn8njmpn7-GNUmakefile
<johnw> but then nix copy complains that this very file lacks a signature
<johnw> i'm just trying to populate our hydra
<johnw> oh, is it because the remote doesn't know about my public key yet?
<johnw> LnL: I added secret-key-files; is there anything I need to restart manually?
<johnw> and when I run this on my own machine: nix verify -n 1 -v /nix/store/0bpajc4r3vpwqjqlai9i363mn8njmpn7-GNUmakefile
<johnw> it says the file is untrusted
__Sander__ has quit [Ping timeout: 246 seconds]
<LnL> ah, you'll have to sign existing paths manually
<LnL> but everything that's built after this point will be signed
<johnw> is there any way to dump the signatures associated with a file?
<LnL> nix path-info --sigs
<clever> there is also `nix copy-sigs` which can download signatures from cache.nixos.org