Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
lib,
|
|
testers,
|
|
git,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "gitmux";
|
|
version = "0.11.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "arl";
|
|
repo = "gitmux";
|
|
rev = "v${finalAttrs.version}";
|
|
sha256 = "sha256-TObnmV/NiMCcyC9zG0OcCuCqUChQZmpqPptQUDtF85A=";
|
|
};
|
|
|
|
vendorHash = "sha256-MvvJGB9KPMYeqYclmAAF6qlU7vrJFMPToogbGDRoCpU=";
|
|
|
|
nativeCheckInputs = [ git ];
|
|
|
|
# After bump of Go toolchain to version >1.22, tests fail with:
|
|
# vendor/github.com/rogpeppe/go-internal/testscript/exe_go118.go:14:27:
|
|
# cannot use nopTestDeps{} (value of struct type nopTestDeps) as testing.testDeps value in argument to testing.MainStart:
|
|
# nopTestDeps does not implement testing.testDeps (missing method InitRuntimeCoverage)'.
|
|
doCheck = false;
|
|
|
|
ldflags = [ "-X main.version=${finalAttrs.version}" ];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = finalAttrs.finalPackage;
|
|
command = "gitmux -V";
|
|
};
|
|
|
|
subPackages = [ "." ];
|
|
|
|
meta = with lib; {
|
|
description = "Git in your tmux status bar";
|
|
homepage = "https://github.com/arl/gitmux";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ nialov ];
|
|
mainProgram = "gitmux";
|
|
};
|
|
})
|