Skip to content

Instantly share code, notes, and snippets.

@573
Last active July 3, 2024 23:59
Show Gist options
  • Save 573/23d9afce7231c20dd9bc8d9bd304aa65 to your computer and use it in GitHub Desktop.
Save 573/23d9afce7231c20dd9bc8d9bd304aa65 to your computer and use it in GitHub Desktop.
nix emacs tip: repl for emacs-overlay to explore packages

nix-repl> :lf github:nix-community/emacs-overlay
nix-repl> :u (lib.x86_64-linux.emacsPackagesFor packages.x86_64-linux.emacs-git).emacsWithPackages(epkgs: [ inputs.nixpkgs.legacyPackages.x86_64-linux.emacsPackages.mistty ])

M-x mistty in emacs:

Symbol’s value as variable is void: mistty-mode-map

:p inputs.nixpkgs.legacyPackages.x86_64-linux.emacsPackages.mistty.recipe.drvAttrs

See szermatt/mistty#14 for more possible insight, i. e. this would be the precise nix way:

nix-repl> :u (inputs.nixpkgs.legacyPackages.x86_64-linux.emacs29-nox.pkgs.withPackages(epkgs: [ epkgs.mistty ]))

Now trying to find out emacs package version used:

nix-repl> :p nixosConfigurations.DANIELKNB1.config.home-manager.users.dkahlenberg.programs.emacs.package.pkgs.mistty.version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment