You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Diving into #212 more I found that working versions didn't work after a non-working, but they do the second time:
{pkgs?import(builtins.fetchTarball{url="https://github.com/nixos/nixpkgs/archive/a7ecde854aee5c4c7cd6177f54a99d2c1ff28a31.tar.gz";}){overlays=[(import(builtins.fetchTarball{url=https://github.com/nix-community/emacs-overlay/archive/c4bcf4b66394a4472cc251e2350c557dac13d621.tar.gz;}))];}, ... }:
letemacsPkgs=epkgs: [(builtins.trace"===> ${epkgs.haskell-mode.name}"epkgs.melpaPackages.haskell-mode)];pkgsWithOverlay=(import(builtins.fetchTarball{url="https://github.com/nixos/nixpkgs/archive/a7ecde854aee5c4c7cd6177f54a99d2c1ff28a31.tar.gz";})){overlays=[(import(builtins.fetchTarball{url=https://github.com/nix-community/emacs-overlay/archive/master.tar.gz;}))];};# worksmyEmacsGcc=(pkgsWithOverlay.emacsPackagesGenpkgsWithOverlay.emacsGcc).emacsWithPackages(epkgs: ([epkgs.haskell-mode]));myEmacsGccImportedEmacsPackages=(pkgsWithOverlay.emacsPackagesGenpkgsWithOverlay.emacsGcc).emacsWithPackages(import./emacs-packages.nix);emacsWithOverlay=pkgsWithOverlay.emacsWithPackagesFromUsePackage{config=builtins.readFiledotEmacs;# builtins.readFile ./emacs.el;z# nix-shell ~/.emacs.d/flavors/emacs-haskell-mode-repro.nix --run test-emacs# I uncommented these and ran them in order and got really weird behavior# works# package = pkgs.emacs;# extraEmacsPackages = emacsPkgs;# works# package = pkgsWithOverlay.emacs;# extraEmacsPackages = emacsPkgs;# eldoc error: (void-function haskell-doc-current-info)# package = pkgsWithOverlay.emacsGcc;# extraEmacsPackages = emacsPkgs;# NOTE: same as the one that worked above# works# package = pkgsWithOverlay.emacs;# extraEmacsPackages = emacsPkgs;# doesn't work# package = myEmacsGcc;# NOTE: same as the one that worked above# doesn't work????# package = pkgsWithOverlay.emacs;# extraEmacsPackages = emacsPkgs;# eldoc error: (void-function haskell-doc-current-info)# package = myEmacsGccImportedEmacsPackages;# NOTE: same as the one that worked above# run 1. eldoc error: (void-function haskell-doc-current-info)# run 2 works# package = pkgsWithOverlay.emacs;# extraEmacsPackages = emacsPkgs;};dotEmacs=pkgs.writeText"dot-emacs"'' (require 'haskell-mode) '';trivialHaskell=pkgs.writeText"foo.hs"'' module Main where main = undefined '';testEmacsHaskell=pkgs.writeScriptBin"test-emacs"'' exec ${emacsWithOverlay}/bin/emacs -Q -l ${dotEmacs}${trivialHaskell} '';inpkgs.mkShell{buildInputs=[testEmacsHaskell];}
The text was updated successfully, but these errors were encountered:
Diving into #212 more I found that working versions didn't work after a non-working, but they do the second time:
The text was updated successfully, but these errors were encountered: