Skip to content

Instantly share code, notes, and snippets.

@srhb
Created April 15, 2020 06:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srhb/f2af4c7e046838f0df6bcd2eb24509ea to your computer and use it in GitHub Desktop.
Save srhb/f2af4c7e046838f0df6bcd2eb24509ea to your computer and use it in GitHub Desktop.
{ pkgs ? import <nixpkgs> {} }:
let
myEmacs = pkgs.emacs;
overrides = self: super: {
flymake = super.flymake.override {
elpaBuild = args: super.elpaBuild (args // {
src = (builtins.fetchGit {
url = "git@github.com:flymake/emacs-flymake.git";
rev = "8701c806d5e8f4e2c6f7dea461273482ad89c029";
ref = "master";
}) + "/flymake.el";
});
};
};
emacsWithPackages = ((pkgs.emacsPackagesGen myEmacs).overrideScope' overrides).emacsWithPackages;
in
emacsWithPackages (p: with p; [
haskellMode
eglot
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment