Commit `efc49ba` (feat: upgrade to lipgloss v2, #94) changed `go.mod`/`go.sum` (lipgloss v1 → v2, ~24 dependency version bumps) but did not update `vendorHash` in `flake.nix`. As a result `nix build .#iris` (and any consumer) fails with a fixed-output derivation hash mismatch: ``` error: hash mismatch in fixed-output derivation 'iris-<rev>-go-modules.drv': specified: sha256-kBSMhUsuCKIjAXjGfl1WSjCX+tlGi9BTnkRu9ScW6M0= got: sha256-KQNloP/Aj283YQ4d5LFu/2Pbb2HbVTZPhLK1fs4xvGw= ``` This one-line change updates `vendorHash` to the hash actually produced by the module set at HEAD. Verified: `nix build .#iris` succeeds with the corrected hash. Run `nix flake update` afterwards to regenerate `flake.lock`.
67 lines
1.6 KiB
Nix
67 lines
1.6 KiB
Nix
{
|
|
inputs = {
|
|
systems.url = "github:nix-systems/default";
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
};
|
|
|
|
outputs = inputs @ {flake-parts, ...}:
|
|
flake-parts.lib.mkFlake
|
|
{
|
|
inherit inputs;
|
|
}
|
|
(
|
|
{
|
|
inputs,
|
|
self,
|
|
...
|
|
}: {
|
|
systems = import inputs.systems;
|
|
perSystem = {
|
|
pkgs,
|
|
self',
|
|
...
|
|
}: {
|
|
packages = {
|
|
iris = pkgs.buildGoModule {
|
|
pname = "iris";
|
|
version = self.shortRev or "dirty";
|
|
src = pkgs.lib.cleanSource ./.;
|
|
|
|
subPackages = ["cmd/iris"];
|
|
|
|
proxyVendor = true;
|
|
vendorHash = "sha256-KQNloP/Aj283YQ4d5LFu/2Pbb2HbVTZPhLK1fs4xvGw=";
|
|
|
|
doCheck = false;
|
|
|
|
meta = with pkgs.lib; {
|
|
description = "A highly customizable, blazing fast and context-aware CLI autocomplete/navigation tool";
|
|
homepage = "https://github.com/versenilvis/iris";
|
|
license = licenses.mit;
|
|
mainProgram = "iris";
|
|
};
|
|
};
|
|
default = self'.packages.iris;
|
|
};
|
|
|
|
devShells.default = pkgs.mkShellNoCC {
|
|
# Tell Direnv to shut up.
|
|
DIRENV_LOG_FORMAT = "";
|
|
|
|
packages = [
|
|
# languages
|
|
pkgs.go
|
|
pkgs.pkl
|
|
|
|
# Tooling
|
|
pkgs.hk
|
|
pkgs.just
|
|
pkgs.alejandra
|
|
];
|
|
};
|
|
};
|
|
}
|
|
);
|
|
}
|