MarkRBM has quit [Ping timeout: 246 seconds]
alexteves has quit [Remote host closed the connection]
trcc has joined #nix-darwin
trcc has quit [Ping timeout: 245 seconds]
trcc has joined #nix-darwin
trcc has quit [Ping timeout: 272 seconds]
<johnw> LnL: I don't know what's changed in Nix, but often now when I 'nix copy', I get errors like this: could not copy /nix/store/zjakk1lxzd0vmkbdgc1y9fyck0ccndlz-inkscape-0.92.3: unexpected end-of-file
<johnw> this will happen even for a store that has passed --verify --check-contents
philr has joined #nix-darwin
trcc has joined #nix-darwin
trcc has quit [Ping timeout: 244 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
trcc has joined #nix-darwin
hamishmack has joined #nix-darwin
<LnL> this new with 2.1 or have you been using unstable?
trcc_ has joined #nix-darwin
trcc has quit [Ping timeout: 240 seconds]
trcc_ has quit [Remote host closed the connection]
trcc has joined #nix-darwin
nikivi has quit [Quit: ZNC is awesome]
nikivi has joined #nix-darwin
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nix-darwin
hamishmack has joined #nix-darwin
carlosdagos has quit [Quit: Connection closed for inactivity]
nikivi has quit [Quit: ZNC is awesome]
trcc has quit [Read error: Connection reset by peer]
trcc_ has joined #nix-darwin
nikivi has joined #nix-darwin
trcc_ has quit [Remote host closed the connection]
trcc has joined #nix-darwin
trcc has quit [Ping timeout: 260 seconds]
trcc has joined #nix-darwin
trcc has quit []
philr has quit [Quit: WeeChat 2.2]
alexteves has joined #nix-darwin
<johnw> LnL: I'm using unstable
<johnw> maybe I should switch to stable
<LnL> there wouldn't be much of a diff right now
{`-`} has joined #nix-darwin
<ejpcmac> Hi! I am defining a custom Erlang derivation using `erlang = pkgs.beam.interpreters.erlangR21.override { ... };`. Then, I can use it for rebar doing `rebar = pkgs.rebar.override { inherit erlang };`, but for Elixir it seems I’m stuck to copy-paste the `1.7.nix` contents in my `shell.nix` and use `pkgs.beam.lib.callElixir` with this copy-pasted derivation.
<ejpcmac> So, I have two questions: (1) is there currently a way to use a custom Erlang to build Elixir without using `callElixir`? (2) if not, is there a way to use directly the contents of `pkgs/development/interpreters/elixir/1.7.nix` from my `shell.nix` without copy-pasting? (Though writing this I start to find this kind of dangerous)
<LnL> any reason you can't use overrideAttrs?
<ejpcmac> Mmmh, no. Unless I don’t know yet how to use it.
<ejpcmac> I’ll look for this path then :)
jrolfs has joined #nix-darwin
<ejpcmac> It doesn’t seem to work. Doing `elixir = beam.interpreters.elixir_1_7.overrideAttrs (oldAttrs: rec { inherit erlang rebar; });` I see Erlang 19 being pulled from the binary caches instead of my custom Erlang being used.
<ejpcmac> (erlang and rebar being previously defined as overrides)
<LnL> ah no, .override is for inputs
<LnL> but, what do you need the expression file for then?
<ejpcmac> LnL: To call `beam.lib.callElixir` with the expression, because there I can pass the erlang derivation I want to.
<LnL> let me rephrase, what do you want to change exactly?
<LnL> .override and .overrideAttrs have very different behaviour so it depends what you want to change about elixir
<ejpcmac> I want to change the Erlang derivation it uses
<LnL> ah right, callElixir replaces the default override behaviour
<LnL> that's because it's not very useful, but means you have to override erlang like this instead
<LnL> (beam.packages.erlangR21.override { erlang = erlangR21Custom; }).elixir
<LnL> or as discribed there beam.pacakgesWith erlangCustom also works aparently
<ejpcmac> Oh, thank you very much for this! :)
<ejpcmac> It alsos uses a rebar version using the custom erlang without having to state it by hand. This is perfect!
<LnL> yeah, creating an entire custom set generally makes more sense so the fact that elixir.override is less of a problem
<LnL> and otherwise there wouldn't be any way to override the src, etc.
<LnL> well maybe not src, but the other things
<ejpcmac> Yeah, that’s great indeed. I just needed to know that. It’s a bit tricky to get in but powerful.
<LnL> maybe this could be described a bit better with an example?
<ejpcmac> Yes. I think this is clear for using the default derivations, like beam.packages.erlangR21.elixir_1_7, but not for overriding the erlang version used in the beam.packages.erlangRxx spaces
<ejpcmac> My very usecase it to disable kernell polling on darwin since I still use OS X El Capitan. I need to upgrade in the coming months since it won’t be supported anymore, but I have procrastinated since I need to update my karabiner configuration and other things that did not work when I first tried an upgrade to Sierra two years ago.
jrolfs has quit [Ping timeout: 252 seconds]
<LnL> I have to write some c++ or install karbiner again :/
<LnL> I think it works tho
<ejpcmac> There is Karabiner Elements now, but I don’t know it it handles different config for different keyboards. I need to remap a Yubikey to fit my BÉPO keymap.
<ejpcmac> That being said, have a great nigth. I’m AFK.
jrolfs has joined #nix-darwin
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nix-darwin
johnw has quit [Remote host closed the connection]
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nix-darwin