glenn_ has quit []
munch has quit [Changing host]
munch has joined #nix-darwin
munch has joined #nix-darwin
nkpart has joined #nix-darwin
hamishmack has quit [Quit: hamishmack]
dhess has quit [Ping timeout: 255 seconds]
pikajude has quit [Ping timeout: 255 seconds]
dhess has joined #nix-darwin
pikajude has joined #nix-darwin
jtojnar has quit [Ping timeout: 240 seconds]
matthewbauer has quit [Ping timeout: 256 seconds]
nkpart has quit [Quit: Connection closed for inactivity]
hamishmack has joined #nix-darwin
hamishmack has quit [Quit: hamishmack]
hamishmack has joined #nix-darwin
hamishmack has quit [Client Quit]
matthewbauer has joined #nix-darwin
hamishmack has joined #nix-darwin
matthewbauer has quit [Ping timeout: 268 seconds]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 276 seconds]
zzamboni has joined #nix-darwin
zzamboni has quit [Remote host closed the connection]
zzamboni1 has joined #nix-darwin
periklis has joined #nix-darwin
jtojnar has joined #nix-darwin
zzamboni has joined #nix-darwin
zzamboni1 has quit [Remote host closed the connection]
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
jtojnar has quit [Read error: Connection reset by peer]
zzamboni has quit [Remote host closed the connection]
zzamboni has joined #nix-darwin
jtojnar has joined #nix-darwin
<jtojnar> is it possible to get otool on linux?
<LnL> no idea
<jtojnar> hmm, we had a package
<jtojnar> but it was just a copy from the system
<LnL> it's in the cctools, but I don't know if we can make it linux compatible
__Sander__ has joined #nix-darwin
<LnL> there are some conditionals in there, but I think that's just for cross
<jtojnar> building it apparently requires xcode
<gchristensen> jtojnar: are you still working on gegl for darwin? I'm not sure our gimp has ever worked on darwin
<LnL> think it did at some point
<LnL> seem to recall a pr for it
<jtojnar> gchristensen: just doing a research for patching meson to set install_name correctly
<gchristensen> oh ok
<jtojnar> Is LC_LOAD_DYLIB the equivalent of DT_NEEDED in Mach-O?
<gchristensen> I just want to make sure you're not frustrated, chasing down a build failure that has never passed without wanting to do it
<LnL> oh yes, it might have been broken for a while so so it's probably not a big deal
<LnL> not sure about DT_NEEDED, I'd have to readup on that again
<jtojnar> DT_NEEDED is what stores the library to be loaded by runtime linker in ELF
<jtojnar> I still do not understand the need for install_name
<jtojnar> if it is simply copied to LC_LOAD_DYLIB, why not just pass it as an option to linker?
<jtojnar> it seems to me like if .pc file was embedded to library .so
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
Sonarpulse has joined #nix-darwin
jtojnar_ has joined #nix-darwin
jtojnar has quit [Ping timeout: 240 seconds]
jtojnar_ is now known as jtojnar
peacememories has joined #nix-darwin
<peacememories> if i wanted to install a specific version of gcc in a nix-shell, what would i need to do?
<mitchty> dhess: i poked around a bit more last night at core files, this weeks fun is learning cmm, stg, and more llvm shenanigans, i did find out this morning that I can get further by not building haddock docs
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peacememories has joined #nix-darwin
<peacememories> hmm, gcc49 doesn't build for me
<peacememories> because apparently _VSTD::abort() expands to std::__1::fancy_abort(), but fancy_abort doesn't have a namespace
<LnL> yeah not all versions of gcc currently build on darwin
<peacememories> hmm, can i fix this somehow?
<peacememories> or should they maybe be disabled on darwin?
<peacememories> so people don't get their hopes up
<peacememories> btw, nixpkgs-unstable should have binary caches, right?
<LnL> but for versions that work you can use nix-shell -p gcc7
<LnL> or for a full stdenv environment something like this
<LnL> nix-shell -E 'with import <nixpkgs> {}; (gccStdenv.override { cc = gcc7; }).mkDerivation { name = "shell-environment"; }'
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peacememories has joined #nix-darwin
<peacememories> hmm, the `repo` tool is not in the nix repos?
<peacememories> hmm, i tried to make this environment with gcc on my ubuntu build server
<peacememories> and i get this error:
<peacememories> building path(s) ‘/nix/store/5kqylzzcgpsds2qi8wmg873hkq6qawy2-stdenv’
<peacememories> output ‘/nix/store/5kqylzzcgpsds2qi8wmg873hkq6qawy2-stdenv’ is not allowed to refer to path ‘/nix/store/83abj589v6z6qak2rxlb9vvynnfvnrzg-gmp-6.1.2’
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Sander__ has quit [Quit: Konversation terminated!]
jtojnar has quit [Quit: jtojnar]
peacememories has joined #nix-darwin
peacememories has quit [Client Quit]
peacememories has joined #nix-darwin
<peacememories> hmm
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peacememories has joined #nix-darwin
periklis has quit [Ping timeout: 246 seconds]
<adelbertc> is there something up with nixpkgs emacs on darwin? both on my personal and work laptop using Nix-installed emacs just seems to hang
<johnw> adelbertc: on startup?
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adelbertc> johnw: yep
<adelbertc> i type `emacs` in the terminal and it just hangs there
<johnw> can you run: emacs --debug-init
peacememories has joined #nix-darwin
<johnw> if that still hangs, run:
<johnw> lldb -o run -f $(which emacs) -- --debug-init
<johnw> and then let it hangs for a bit and hit C-c and type "bt<RET>"
<adelbertc> hmm
<adelbertc> `bin/emacs' doesn't contain any 'host' platform architectures: x86_64h, x86_64, i386`
<adelbertc> it hung on the `emacs --debug-init`
<adelbertc> it didnt ahng on `lldb` and spat that out
<johnw> oh, it's a script
<johnw> run bash -x emacs
<johnw> to see what it ultimately runs
<adelbertc> ```
<adelbertc> + export EMACSLOADPATH=/nix/store/9p9ji2js16zvr201vki8pz2qf31zl82d-emacs-packages-deps/share/emacs/site-lisp:
<adelbertc> + EMACSLOADPATH=/nix/store/9p9ji2js16zvr201vki8pz2qf31zl82d-emacs-packages-deps/share/emacs/site-lisp:
<adelbertc> + exec /nix/store/8c211iadbjpjbrr5yv9ngpchasc6xa13-emacs-25.3/bin/emacs
<adelbertc> ```
<johnw> yeah, use that path
<adelbertc> i let it hang, hit `Ctrl+C` and did "bt<RET>", still hangs
<adelbertc> is 'C' ctrl or command
<johnw> Control-C
<johnw> like, to abort things at the shell
<adelbertc> yeah thats what i did
<adelbertc> it didnt seem to respond
<johnw> ok, now let's try to dtrace it
<adelbertc> ```
<adelbertc> Current executable set to '/nix/store/8c211iadbjpjbrr5yv9ngpchasc6xa13-emacs-25.3/bin/emacs' (x86_64).
<adelbertc> lldb -o run -f /nix/store/8c211iadbjpjbrr5yv9ngpchasc6xa13-emacs-25.3/bin/emacs -- --debug-init
<adelbertc> (lldb) target create "/nix/store/8c211iadbjpjbrr5yv9ngpchasc6xa13-emacs-25.3/bin/emacs"
<adelbertc> (lldb) settings set -- target.run-args "--debug-init"
<adelbertc> (lldb) run
<adelbertc> ^Cbt
<adelbertc> ```
<johnw> try C-c C-c
<adelbertc> no go
<johnw> we need to run "bt" at an (lldb) rompt
<johnw> ok, run:
<johnw> dtruss /nix/store/8c211iadbjpjbrr5yv9ngpchasc6xa13-emacs-25.3/bin/emacs
<adelbertc> i killed it manually
<adelbertc> ```
<adelbertc> frame #11: 0x00000001001ad1c4 emacs`-[EmacsApp run] + 404
<adelbertc> frame #14: 0x00000001000bda53 emacs`read_char + 7363
<adelbertc> frame #13: 0x000000010017dda2 emacs`wait_reading_process_output + 2738
<adelbertc> frame #12: 0x00000001001abd44 emacs`ns_select + 964
<adelbertc> frame #15: 0x00000001000ba023 emacs`read_key_sequence + 2435
<adelbertc> frame #16: 0x00000001000b9572 emacs`command_loop_1 + 5154
<adelbertc> frame #17: 0x0000000100135045 emacs`internal_condition_case + 261
<adelbertc> frame #18: 0x00000001000c7880 emacs`command_loop_2 + 48
<adelbertc> frame #19: 0x00000001001348fd emacs`internal_catch + 253
<adelbertc> frame #20: 0x00000001000b75de emacs`command_loop + 158
<adelbertc> frame #21: 0x00000001000b74f1 emacs`recursive_edit_1 + 113
<adelbertc> frame #22: 0x00000001000b77cd emacs`Frecursive_edit + 397
<adelbertc> frame #23: 0x00000001000b62ba emacs`main + 5706
<johnw> oh, interesting
<johnw> it's like it created a frame somewhere that you're just not seeing
<johnw> if you just type things and hit RET, does emacs respond?
<adelbertc> possible.. let me try tabbing around
<adelbertc> ok yeah it did
<adelbertc> it popped up in the background, hiding
<adelbertc> doesnt show up in the dock either..
<adelbertc> ok so it does work, it was just hiding :)
<adelbertc> thank you johnw !
<johnw> :)
<johnw> thanks for the backtrace, that answered it
<adelbertc> now the weird thing is even if im focused on the emacs window and i type
<adelbertc> the commands go to my terminal
<adelbertc> not the emacs window
<johnw> i've heard of this bug before
<johnw> can you try:
<johnw> open -a Emacs
<johnw> instead of running "emacs"
<adelbertc> "Unable to find application"
<johnw> :(
<johnw> I guess it's in /nix/store/8c211iadbjpjbrr5yv9ngpchasc6xa13-emacs-25.3/Applications?
<adelbertc> ah yep
<johnw> and maybe ~/Applications?
<adelbertc> nope
<johnw> did you nix-env -i this?
<adelbertc> yep
<adelbertc> `nix-env -iA nixpkgs.myEmacs`where `myEmacs` is an overlay version of https://nixos.org/nixpkgs/manual/#sec-emacs
<johnw> hmmm
<johnw> oh, of course
<johnw> open ~/.nix-profile/Applications/Emacs.app
jtojnar has joined #nix-darwin
<adelbertc> woooo
* LnL was almost going to make a joke
<adelbertc> do tell :)
<LnL> if your os doesn't boot, just install an editor instead
<adelbertc> haha
<LnL> alltho johnw has some neat stuff in his emacs config for nix that I wouldn't mind to have
<johnw> I'm very happy with Nixified Emacs now
<johnw> at first I was hesitant, and so I back-burned that project for several months
<johnw> but finally I bit the bullet and went in full-bore, and now I'm quite pleased
<johnw> I state what all the packages are in my overlay:
<johnw> and then in another file stat which ones I want in my Emacs environments:
<johnw> I've defined a few functions for easily grabbing things from EmacsWiki (when MELPA doesn't have them), patching Melpa definitions, and installing from GitHub when all that the project needs is to byte-compile some .el files at root
<johnw> the custom-building of Emacs at the bottom can be ignored
<johnw> i end up with 4 separate Emacs environments: current release (25), pending release (26), pending release with full debugging (26debug), and current master with full debugging (27)
<johnw> with all packages included in every environment
<johnw> thank goodness they're pretty quick to build :)
<johnw> all of this is then mirrored by use-package declarations here:
<johnw> what I'm thinking about doing is creating emacsWithUsePackages
<johnw> to allow "standard" use-package declarations for each package to be defined in nixpkgs
<johnw> which you can then customize or add to in your Nix config, without having to declare a new use-package form in init.el
<johnw> dunno if that's worth the time, though, and probably I'd be the only one maintaining it
<johnw> plus, it would actually gain me nothing, just more Nix goodness
peacememories has quit [Quit: Textual IRC Client: www.textualapp.com]
hamishmack has quit [Quit: hamishmack]
hamishmack has joined #nix-darwin
hamishmack has quit [Ping timeout: 240 seconds]
hamishmack has joined #nix-darwin
hamishmack has quit [Ping timeout: 240 seconds]
hamishmack has joined #nix-darwin
<LnL> hmm, .override doesn't work for the apple source releases :/
<contrapumpkin> did we not use callPackages on them/
<contrapumpkin> I must've screwed something up with that
<contrapumpkin> the older it gets, the more I dislike the way I structured the apple source releases
<LnL> a makeOverridable in the right place might help
<contrapumpkin> callPackages should do that for us iirc
<LnL> have to do some weird stuff now to try to build one of those with a different stdenv
<contrapumpkin> ooh, whatcha doing?
<contrapumpkin> aha
<LnL> dtz: btw, do you have access to a mac?
<dtz> LnL: I do not! :(.
<LnL> ok just checking
<dtz> on the subject, was just thinking the other day--is it a silly objective/goal to be able to cross-compile to Darwin (or even "native" using free things + VM)?
<dtz> I imagine if it wasn't impossible/unreasonable we'd probably already that sort of infra in place but just wondering :)
<LnL> I think linux->darwin used to work before Sonarpulse's overhaul
<Sonarpulse> :O
<Sonarpulse> oh linux->darwin
<Sonarpulse> hmm
<LnL> when I tried it a few days ago there was some kind of recursion problem, but it might be mostly ok after that
<Sonarpulse> not for a while maybe??
<Sonarpulse> that would be with clang?
<Sonarpulse> dtz: need those LLVM fixes in that commit :D
<LnL> don't remember
<LnL> and for native builds, I'm happy to build larger stuff like https://hydra.daiderd.com/jobset/nixpkgs/pr-34457 :)
<LnL> fixed ICU, if everything else looks good we can run an eval for everything and compare with maser
<dtz> Wooo
<LnL> if 6 gets released not too close to the release we could take a look at just skipping 5