codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos-emacs
codygman has quit [Ping timeout: 272 seconds]
codygman has joined #nixos-emacs
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos-emacs
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos-emacs
johnw has joined #nixos-emacs
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos-emacs
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos-emacs
m_hackerfoo has quit [Remote host closed the connection]
hackerfoo has quit [Remote host closed the connection]
cole-h has quit [Quit: Goodbye]
asymptotically has joined #nixos-emacs
<NobbZ[m]> Hi! I use home-manager to generate a couple of files which altogether resemble my Emacs config. I'd like to compile those files into a package such that they get byte compiled, and even more important, home-manager will remind me to restart the Emacs deamon. Any clues for me, how to do it?
opticnerve has joined #nixos-emacs
opticnerve has quit [Quit: bye]
<NobbZ[m]> If it is of any importance, I use the Emacs overlay
<adisbladis> NobbZ[m]: What you're looking for is trivialBuild
<NobbZ[m]> Can you give me an example? Or maybe give a link to one?
<adisbladis> emacsWithPackages(epkgs: [ (epkgs.trivialBuild { pname = "my-custom"; src = ./src; })
<adisbladis> NobbZ[m]: ^
<NobbZ[m]> Thanks. Will give that a try!
<adisbladis> emacsWithPackages(epkgs: [ (epkgs.trivialBuild { pname = "my-custom"; src = ./src; }) ])
<adisbladis> My previous copy-paste dropped a few characters
<adisbladis> What trivialBuild is doing is just byte-compiling any .el files in the sources and copying them to the appropriate location in $out
codygman has quit [Ping timeout: 264 seconds]
codygman has joined #nixos-emacs
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos-emacs
cole-h has joined #nixos-emacs
kronecker has joined #nixos-emacs
<kronecker> Hello! I'm using nixos and home-manager to manage my emacs config along with the emacs community overlay. I'm trying to install a package that lives on github and doesn't have a melpa build. I've tried to use fetchFromGithub inside of both a trivialBuild and elpaBuild. The latter gives a "missing header" error and the former builds successfully, but then emacs can't find the package when I do
<kronecker> a require or use-package. Has anyone tried to do something similar/have an example nix config or overlay doing something like this lying around that I could look at?
aterius has joined #nixos-emacs
<adisbladis> "missing header" is a common-ish upstream packaging bug
<adisbladis> package.el cannot install packages without proper metadata
<adisbladis> Maybe you can try patching the package and add one
<kronecker> do you have an example of a package with the proper metadata that I could stare at?
<bqv> The former is just due to load paths.
<bqv> If the package is built, emacs can load it, it just needs to know where it is
<bqv> Find the .elc file, try (add-to-list 'load-paths "/the/directory"), then you can require fine
<bqv> Or even use-package
<kronecker> oh that's interesting...it must not be ending up in the same directory/path as all the epkgs.* packages. I wonder if that's something I have to specify somewhere in the nix file
<adisbladis> kronecker: Are you using emacsWithPackages?
<bqv> Clearly not
<kronecker> yup I'm using emacsWithPackages and including a ekpgs.callPackage in that list.
<kronecker> in any case I thought I needed to require the package when I should have been trying to directly autoload a function. It works now--thanks for your help!
<bqv> ?!
<bqv> If you're using emacsWithPackages it should load fine
<bqv> Somethings bad there
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos-emacs
<kronecker> I'll preface this with I don't really know what I'm doing. That being said, the nix part wasn't the problem. I had to autoload the major from the file (which emacs has no problems finding) and set the file extension in my init.el
kronecker has quit [Quit: WeeChat 2.8]
stigo has quit [Quit: stigo]
stigo has joined #nixos-emacs
asymptotically has quit [Quit: Leaving]