Files
nixpkgs/pkgs/by-name/gi/gitmux/package.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

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 = {
description = "Git in your tmux status bar";
homepage = "https://github.com/arl/gitmux";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ nialov ];
mainProgram = "gitmux";
};
})