nirimon: init at 2026.605.1

This commit is contained in:
Yifei Sun
2026-06-05 14:30:21 +02:00
parent fcfb4d2c1c
commit 742d9516f4
+52
View File
@@ -0,0 +1,52 @@
{
lib,
buildGoModule,
fetchFromGitHub,
makeWrapper,
nix-update-script,
versionCheckHook,
wl-mirror,
}:
buildGoModule (finalAttrs: {
pname = "nirimon";
version = "2026.605.1";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "stepbrobd";
repo = "nirimon";
tag = finalAttrs.version;
hash = "sha256-mdBl2QuvAYEltGB2kE0EJhQtWSSZ78qdpSzWKreDZUY=";
};
vendorHash = "sha256-txuaYMyYYalKGQ5RIuPL/ERyDt/eMeo85aZSgx4HbZk=";
ldflags = [
"-s"
"-w"
"-X main.Version=${finalAttrs.version}"
];
nativeBuildInputs = [ makeWrapper ];
postFixup = ''
wrapProgram $out/bin/nirimon --prefix PATH : "${lib.makeBinPath [ wl-mirror ]}"
'';
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "-version";
passthru.updateScript = nix-update-script { };
meta = {
description = "TUI monitor configuration tool for niri with visual layout, drag-and-drop, and profile management";
homepage = "https://github.com/stepbrobd/nirimon";
license = lib.licenses.asl20;
mainProgram = "nirimon";
maintainers = with lib.maintainers; [ stepbrobd ];
platforms = lib.platforms.linux;
};
})