ChanServ changed the topic of #nixos-emacs to: https://github.com/NixOS/nixpkgs/issues/66303 | https://rms.sexy
equivrel has joined #nixos-emacs
<equivrel> Hello, what is the easiest way to override the source of a particular emacs (e.g. melpa) package to a specific commit? I need to bisect helm for a bug that has recently appeared.
<adisbladis> equivrel: Probably via a local overlay
<adisbladis> Something like:
<equivrel> adisbladis: do overlays get applied in the sequence they are listed? So if I put something like that after emacs-overlay it will be modifying emacs-overlay, rather than the original one?
<adisbladis> equivrel: Yeah, but you might wanna stick with emacsPackages.overrideScope'
<adisbladis> And not override the function creating the emacs set
<equivrel> adisbladis: mhm, I had something with overrideScope' before, will try that now
<equivrel> I'm actually struggling to get this to work, it is complaining about infinite recursion... I am doing something like this: https://lev.liv.nev.org.uk/pub/3f8c531c715b9b8147a1a9faa01f00299d1c0be4ca2ca3eaafaf27c2aaed3652
<adisbladis> equivrel: self.helm.override -> super.helm.override
<adisbladis> That should fix the recursion :)
<equivrel> Ah thanks. Now I get: "error: attempt to call something which is not a function but a set" on that line
<adisbladis> equivrel: http://ix.io/22h5/nix
<adisbladis> That one evals, I didn't let the build finish
<equivrel> adisbladis: yay! that worked. Had to use .overrideAttrs instead of .override {} (...)
<equivrel> I was confusing it with overrideDerivation (...) (...)
<adisbladis> Oh, dont use overrideDerivation :)
<adisbladis> Graham made this one a while ago to explain overrides (and which override function does what) https://quad.pe/e/vOisybd6NF.png
<adisbladis> equivrel: ^
<equivrel> Thanks! That is instructive.
<equivrel> have to reboot my emacs now brb
equivrel has quit [Remote host closed the connection]
equivrel has joined #nixos-emacs
<equivrel> OK, that wasn't a waste of time since I managed to locate a working helm version :)
<adisbladis> \o/
<equivrel> thanks