Nix flake for the ReRune CLI. It packages the prebuilt rerune binaries from the official release mirror (BasalBit/rerune-releases) for x86_64-linux, aarch64-linux, x86_64-darwin and aarch64-darwin. The same repository is also a NUR repository.
Try it without installing:
nix run github:BasalBit/nix-rerune -- versionInstall it into your profile:
nix profile install github:BasalBit/nix-reruneUpgrade a profile install with nix profile upgrade --all. This is also what rerune update prints for a profile install.
Add the flake input:
rerune.url = "github:BasalBit/nix-rerune";Then add the package to environment.systemPackages or home.packages:
inputs.rerune.packages.${pkgs.stdenv.hostPlatform.system}.defaultUpgrade with nix flake update rerune, then rebuild the configuration. rerune update prints nix flake update rerune for an installation that does not come from a Nix profile.
The flake also exports overlays.default, which adds rerune to your package set.
A pull request adds this repository to NUR as basalbit. Once NUR lists it, the package is nur.repos.basalbit.rerune.
pkgs/rerune/default.nix downloads the release archive for your system with fetchurl, pinned to the SHA-256 in the release's checksums.txt, and installs bin/rerune, the MIT license and the README. The binary is not stripped, patched or re-signed (dontFixup = true), so it stays byte-identical to the published executable and the ad-hoc code signature of the Apple silicon binary stays valid. The Linux binaries are static Go executables, so they need no ELF patching on NixOS. The build runs rerune version and fails unless it prints the packaged version.
The store path is /nix/store/<hash>-rerune-<version>/bin/rerune, which is how rerune update recognizes a Nix installation.
nixpkgs follows nixpkgs-unstable, the branch NUR evaluates against and the only branch that is built and cached for both Linux and aarch64-darwin. Nixpkgs dropped x86_64-darwin from unstable after 26.05, so that system builds with its own input, nixpkgs-x86_64-darwin, pinned to nixpkgs-26.05-darwin (the last release that supports it) with allowDeprecatedx86_64Darwin. The package needs only stdenvNoCC and fetchurl, so you can let it follow your own nixpkgs:
rerune.inputs.nixpkgs.follows = "nixpkgs";This repository is generated. Its source of truth is packaging/nix/ in the ReRune CLI repository, and every file here is replaced on each release, so please open issues rather than pull requests for packaging changes.
- For each stable tag
vX.Y.Z, the CLI release workflow renderspkgs/rerune/default.nixfrom the release mirror'schecksums.txt, downloads every archive and compares its SHA-256, and pushes the new tree as one commit on top ofmainto thestagingbranch. - The
ciworkflow builds and runs the package onubuntu-latest(x86_64-linux),ubuntu-24.04-arm(aarch64-linux),macos-latest(aarch64-darwin) andmacos-26-intel(x86_64-darwin). Each job runsnix flake check --all-systems,nix build,rerune version,nix run, anix profile installand upgrade, compares the store binary with the release'sbinary-checksums.txt, checks the store path against thererune updatepattern, verifies the ad-hoc code signature on Apple silicon (the Go linker signs only arm64 binaries; Intel macOS runs unsigned ones), and runsrerune update. The Linux and Apple silicon jobs also evaluate the repository the way NUR does (ci/nur-eval.sh). - The CLI release workflow waits for that run. Only when every job is green does it fast-forward
mainto exactly the tested commit and create the tagvX.Y.Z, in one atomic push. It refuses when the tag already points at another commit, and a failed run leavesmainand the tags untouched. It then asks NUR to refreshbasalbit; NUR also polls daily, so a failed request is only a warning.
The ci workflow only reads the repository: pull requests run the same test matrix, and nothing in this repository can move main. main and the v* tags are protected against deletion, force-pushes and tag updates.
MIT, see LICENSE. ReRune CLI itself is MIT licensed by BasalBit GmbH.