<laggy_wifi>
this can be done in a minimal chroot to avoid nix loading files from nixos host itself
<laggy_wifi>
as i am trying to figure out how nix's dynamic loader works if it does not use ld.so.cache and according to "./patchelf-static --print-needed dummy" libquadmath is displayed as "libquadmath.so.0" yet ldd still manages to find it without using ld.so.cache
<srhb>
laggy_wifi: There are different methods. Sometimes ld is wrapped, more ofte RPATH is patched such that the store path of the dependency is embedded in the executable
<laggy_wifi>
ok
<laggy_wifi>
do u know where i could find the code for dlopen()
orivej has quit [(Ping timeout: 248 seconds)]
<globin>
Sonarpulse: our Mac sometime turns itself off.. I'll try if I can reach it from home otherwise might drop by the office the next few days
laggy_wifi has quit [(Read error: Connection reset by peer)]
laggy_wifi has joined joined #nixos-dev
<Sonarpulse>
globin: thanks, no real rush of course
<domenkozar>
ghc 8.2.x depends on alex, happy and hscolour to build
<domenkozar>
so bootstrapping becomes hell
<gchristensen>
:|
<domenkozar>
bgamari: do binary ghcs come with bootstrap binaries like those?
<bgamari>
domenkozar, nope
<bgamari>
the GHC build process itself also requires ghc
<bgamari>
there are binary GHC expressions in nixpkgs for bootstrapping
<bgamari>
although it would be nice if they were a tad newer
<bgamari>
the latest one is 7.4 iirc
<domenkozar>
bgamari: I'm working on that now
<domenkozar>
actually I have them working up to 8.2
<bgamari>
lovely
<domenkozar>
but the problem is that generic builder builds bootstrapped packaged (hscolour, happy, alex)
<domenkozar>
so once you modify it, you still have to recompile your ghc
* bgamari
has rebased Sonarpulse's GHC cross-compilation patches
<bgamari>
and now has a working GHC cross-compiler for ARM
<domenkozar>
ideally we'd bootstrap these three packages without generic builder
<bgamari>
domenkozar, "it" == ?
<bgamari>
the generic builder?
<domenkozar>
yes
<domenkozar>
you can workaround that by using two nixpkgs checkout
<domenkozar>
and point bootstrapped packages to unmodified clone
<domenkozar>
but that's really far from ideal
<bgamari>
incidentally, does anyone know what the status of `nix copy` is?
<bgamari>
the --no-check-sigs flag doesn't seem to work
<bgamari>
either that or I have misunderstood what it is supposed to do
<bgamari>
since it still complains of `error: cannot add path '/nix/store/402qhax6xjfqgglfcrccz2abkwgbv5pg-armv7l-unknown-linux-gnueabihf-ghc-8.2.1-doc' because it lacks a valid signature` even with the flag
<LnL>
you can skip signatures as a trusted user
<bgamari>
what is a trusted use?
<LnL>
there’s a nixos option, the daemon log also prints whether the connections are from a trusted user
<domenkozar>
xcode-select: error: no developer tools were found at '/Applications/Xcode.app', and no install could be requested (perhaps no UI is present), please install manually from 'developer.apple.com'.
<domenkozar>
welp, how do I know what command it ran?
<domenkozar>
oh well, set -xe here we come
<gchristensen>
also maybe run it without apple programs in the PATH
<domenkozar>
sigh :)
<gchristensen>
I agree :)
<domenkozar>
I'd just like to disable this integration
ma27 has joined joined #nixos-dev
<domenkozar>
what disables the xcode integration? :)
<domenkozar>
I guess nix impurities allow /usr/bin
<gchristensen>
are you on nix 1.12?
<domenkozar>
1.11
<gchristensen>
1) get 1.12, 2) turn on sandboxing :)
<domenkozar>
one day I'll have a blue eye
<domenkozar>
because niksnut will release 1.12
<domenkozar>
and I'll punch myself to check if I'm dreaming
<gchristensen>
LOL
contrapumpkin has joined joined #nixos-dev
<domenkozar>
error: while setting up the build environment: can't map '/private/tmp/nix-build-ghc-7.8.4-binary.drv-0' to '/private/tmp/nix-build-ghc-7.8.4-binary.drv-5': mismatched impure paths not supported on Darwin
<domenkozar>
the rabbithole thickens
<domenkozar>
all I wanted to fix was a haskell lib
<domenkozar>
then I got to fix binary ghcs
<domenkozar>
here I am debugging nix
<gchristensen>
haha <3 the Nix ecosystem has the best yaks
<domenkozar>
/nix/store/6hnqrzb22kc99vgl4y7zii9nn6f2y1bd-stdenv-darwin/setup: fork: Operation not permitted
<domenkozar>
well
<gchristensen>
are you on high sierra?
<domenkozar>
nope
<gchristensen>
have you setup System Preferences to let you execute unsigned stuff?
<domenkozar>
10.12
<domenkozar>
gchristensen: is that a thing?
<gchristensen>
it is :$
<stqism>
gchristensen: run spctl --master-disable as root
<stqism>
And gatekeeper won't say anything about the stuff you run at all
<stqism>
That, or you remove the untrusted attribute from the file
<gchristensen>
domenkozar: ^ :)
<domenkozar>
no difference
<stqism>
Which is xattr -r -d com.apple.quarantine path/to/binary
<LnL>
huh, why would you run into that!?
<stqism>
Guys just do one of 2 commands I said and it'll run fine
<LnL>
gchristensen: stdenv setup should only be sourced, not executed
<domenkozar>
stqism: spctl --master-disable doesn't work
<domenkozar>
with sudo at least
<stqism>
Well that's weird
<domenkozar>
to me it looks like a nix bug
<LnL>
I'm pretty sure you'd need to do that in single user mode but unless you're doing something very special you don't want that
<domenkozar>
$ sudo nix-channel --update
<domenkozar>
unpacking channels...
<domenkozar>
libc++abi.dylib: terminating with uncaught exception of type nix::SysError: getting status of /nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt: Operation not permitted
<domenkozar>
oh well
<domenkozar>
gchristensen: anything else I should try besides Nix 1.12? :)
<LnL>
oh wait, are you trying to use sandboxing?
<domenkozar>
yes
<LnL>
yeah, that won't work without nix ~master
laggy_wifi has quit [(Quit: Konversation terminated!)]