nix-package-updater

Update custom Nix package versions, source URLs, and cryptographic hashes.

Updated Feb 21, 2024
One-click install
npx skills add https://github.com/zhongjis/nix-config --skill nix-package-updater
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nix-package-updater
Source: https://github.com/zhongjis/nix-config/tree/main/.agents/skills/nix-package-updater
Command: npx skills add https://github.com/zhongjis/nix-config --skill nix-package-updater

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of updating custom Nix packages within the repository, ensuring that local package definitions are kept current with upstream releases and dependency hashes.

Core Features & Use Cases

  • Package Version Bumping: Updates version numbers and source references for custom packages like Helium, DevToys, opencode-morph-fast-apply, and agent-browser.
  • Hash Recalculation: Manages the updating of cryptographic hashes (sha256, cargoHash, npmDepsHash) required for reproducible builds.
  • Use Case: When a new version of DevToys is released, this Skill can be invoked to update its Nix definition, recalculate necessary hashes, and verify the build, ensuring the repository uses the latest stable version.

Quick Start

Use the nix-package-updater skill to update the helium package.

Frequently Asked Questions about nix-package-updater

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

FAQPage Schema
How do I automate Nix package updates for custom repository derivations?

To automate Nix package updates, this Skill bumps version numbers, updates source URLs, and recalculates cryptographic hashes like sha256, cargoHash, and npmDepsHash. It targets specific custom packages including Helium, DevToys, opencode-morph-fast-apply, and agent-browser.

How do I recalculate cargoHash and npmDepsHash for reproducible Nix builds?

Recalculating cargoHash and npmDepsHash for reproducible Nix builds is handled by the Skill during the version bumping process. It automatically updates these cryptographic hashes to ensure local package definitions remain valid and reproducible.

Do I need Nix and its build tools to manage package derivations and dependencies?

Yes, you need Nix and its associated build tools installed to manage package derivations and dependencies. The Skill relies on this environment to update custom package definitions and verify the recalculated hashes for reproducible builds.

What is the best way to update custom Nix packages when a new upstream version is released?

The best way to update custom Nix packages after an upstream release is to invoke this Skill. It updates the Nix definition, recalculates necessary hashes such as sha256, and verifies the build to ensure you use the latest stable version.

Can I use this to update source URLs and version numbers for Helium and DevToys packages?

Yes, you can update source URLs and version numbers for Helium and DevToys packages. The Skill explicitly supports these custom packages, managing their version bumping and source reference updates to keep local definitions current.

What are the limitations of automating dependency updates for custom Nix packages?

The limitation of automating dependency updates for custom Nix packages is that the Skill is restricted to predefined packages like Helium, DevToys, opencode-morph-fast-apply, and agent-browser, and requires a local Nix environment to verify builds.