package-el-purifier

Locked, Nix-resolved dependencies for Emacs package.el.

Quickstart

In your Emacs configuration directory, put the package declarations in packages.el, which your init.el can load:

(require 'package)
(setq package-archives
      '(("gnu" . "https://elpa.gnu.org/packages/")))
(setq package-selected-packages '(vertico))

Open a shell containing the CLI and Emacs wrapper:

nix shell 'github:nix-purifiers/package-el-purifier'
package-el-purifier lock
package-el-purifier prefetch
emacs

Commit the lockfiles: package-el-purifier.lock.json.

Development loop

Keep using the native build and test commands in your working tree. After changing dependency declarations, refresh the lock through the native lock workflow shown above.

Using locked dependencies

Without an applicable purifier lock, the supplied wrapper warns and runs the tool with its usual dependency resolution.

Working offline

Prepare dependencies using the Quickstart workflow before disconnecting. The lock covers the recorded dependency downloads; downloads performed outside that lock need separate inputs.

Supported scope

Target systems

  • x86_64-linux
  • aarch64-linux

More information

Setup and activation · Version compatibility · Using locked dependencies · Working offline · Language tooling integration · Troubleshooting.