Skip to content

Instantly share code, notes, and snippets.

@codygman
Last active April 15, 2020 04:08
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 codygman/f4932e2554ca82e42be147a9a6f5ed14 to your computer and use it in GitHub Desktop.
Save codygman/f4932e2554ca82e42be147a9a6f5ed14 to your computer and use it in GitHub Desktop.
# run with:
# export HOME=$(pwd)
# nix-shell --pure emacs.nix --keep HOME --run "env HOME=$HOME emacs --eval='(load \"$HOME/init.el\")'"
{ pkgs ? (builtins.fetchGit {
name = "nixpkgs-unstable-2020-04-14";
url = "https://github.com/NixOS/nixpkgs.git";
ref = "nixpkgs-unstable";
rev = "7e07846d99bed4bd7272b1626038e77a78aa36f6";
})
{ overlays = [
(self: super: {
flymake = super.fetchGit {
url = "git@github.com:flymake/emacs-flymake.git";
rev = "8701c806d5e8f4e2c6f7dea461273482ad89c029";
ref = "master";
};
})
];
}
}:
let
myEmacs = pkgs.emacs;
emacsWithPackages = (pkgs.emacsPackagesGen myEmacs).emacsWithPackages;
emacsPkgs = emacsWithPackages (epkgs: (with epkgs.melpaPackages; [
epkgs.haskellMode
epkgs.flymake
]));
in
(pkgs.stdenv.mkDerivation {
name = "debug-flymake-annoying-clutter";
# NOTE this is the wrong place I first thought I could put overlays
# then I read https://nixos.org/nixpkgs/manual/#chap-overlays
# though that chapter is heavily file focused and not "use an overlay in your nix expression like this"
# overlays = [ (self: super: {}) ];
buildInputs = [
emacsPkgs
];
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment