{ lib, buildGoModule, fetchFromGitHub, installShellFiles, nix-update-script, pkgsCross, versionCheckHook, }: buildGoModule (finalAttrs: { pname = "moor"; version = "2.10.2"; src = fetchFromGitHub { owner = "walles"; repo = "moor"; tag = "v${finalAttrs.version}"; hash = "sha256-DS2cfu/yX+ebCn7V3FQVN8ltCJcEMD+wIjlS+ENHP8w="; }; vendorHash = "sha256-lz3cq2xL9byhLNbAwEvYOsP9WQsu0hqrWe2EDaLSeOQ="; nativeBuildInputs = [ installShellFiles ]; ldflags = [ "-s" "-w" "-X" "main.versionString=v${finalAttrs.version}" ]; nativeInstallCheckInputs = [ versionCheckHook ]; doInstallCheck = true; postInstall = '' installManPage ./moor.1 ''; passthru = { tests.cross-aarch64 = pkgsCross.aarch64-multiplatform.moor; updateScript = nix-update-script { }; }; meta = { description = "Nice-to-use pager for humans"; homepage = "https://github.com/walles/moor"; changelog = "https://github.com/walles/moor/releases/tag/v${finalAttrs.version}"; license = lib.licenses.bsd2WithViews; mainProgram = "moor"; maintainers = with lib.maintainers; [ getchoo zowoq ]; }; })