emacs-nix-packaging

Automate Nix-based Emacs packaging workflows with emacsWithPackages and overlays.

1|1|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/Jylhis/skills --skill emacs-nix-packaging
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: emacs-nix-packaging
Source: https://github.com/Jylhis/skills/tree/main/skills/emacs-nix-packaging
Command: npx skills add https://github.com/Jylhis/skills --skill emacs-nix-packaging

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates Nix-based Emacs packaging workflows and custom distributions.

Core Features & Use Cases

  • Automated Emacs packaging with emacsWithPackages, overlays, and trivialBuild to compose reproducible environments.
  • Build Emacs from source with Nix, wrap Emacs with Nix, manage native compilation, and configure variants (pgtk, nox, etc.).
  • Integrate MELPA/ELPA packages via melpaBuild, emacsPackagesFor, and withPackages for scalable package management and tree-sitter grammar packaging.

Quick Start

Use the skill to assemble an Emacs environment by selecting packages and variants with emacs overlay and withPackages in a Nix expression.

Frequently Asked Questions about emacs-nix-packaging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build Emacs with custom packages using Nix?▼

You can build Emacs with custom packages in Nix by using emacsPackagesFor and withPackages to assemble a reproducible environment from a Nix expression.

What is the best way to integrate MELPA packages into a Nix-based Emacs build?▼

Integrate MELPA packages into a Nix-based Emacs build by using melpaBuild and emacsPackagesFor workflows to scale package management while maintaining reproducible environments.

Can I use the emacs-overlay to configure native compilation and pgtk variants?▼

Yes, you can use the emacs-overlay to configure native compilation and build specific Emacs variants like pgtk and nox from source within Nix.

How do I package tree-sitter grammars for Emacs in a Nix environment?▼

Package tree-sitter grammars for Emacs in a Nix environment by leveraging emacsPackagesFor and melpaBuild workflows to ensure reproducible grammar integration.

Why use trivialBuild for Emacs packages instead of standard Nix derivations?▼

Use trivialBuild for Emacs packages instead of standard Nix derivations to simplify packaging workflows when composing custom distributions and integrating ELPA or MELPA packages reproducibly.