Last active
April 15, 2020 04:08
-
-
Save codygman/f4932e2554ca82e42be147a9a6f5ed14 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 = "[email protected]: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