Skip to content

Instantly share code, notes, and snippets.

@kbdharun
Created December 13, 2023 14:34
Show Gist options
  • Save kbdharun/035138e92832321bb4341371e3e396c9 to your computer and use it in GitHub Desktop.
Save kbdharun/035138e92832321bb4341371e3e396c9 to your computer and use it in GitHub Desktop.
Update and test a Nix package with ease quickly on Linux 2023
  • Clone the nix-pkgs repository (This would take more than a Gigabit of data/space) and in a new branch perform the below changes.
  • For computing the hash, use:
nix-hash to-sri --type sha256 $(nix-prefetch-url --unpack <url.tar.gz>) --extra-experimental-features nix-command
  • For testing the changes, perform a build using nix-build -A <package>.

Now, push the changes along with release notes URL in the commit message following the suggested conventions.

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