simplotask: modernize

This commit is contained in:
Nikolay Korotkiy 2025-07-08 23:47:42 +04:00
parent 758d0e6801
commit 35db36463f
No known key found for this signature in database
GPG Key ID: D1DE6D7F693663A5

View File

@ -5,14 +5,14 @@
installShellFiles, installShellFiles,
}: }:
buildGoModule rec { buildGoModule (finalAttrs: {
pname = "simplotask"; pname = "simplotask";
version = "1.17.2"; version = "1.17.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "umputun"; owner = "umputun";
repo = "spot"; repo = "spot";
rev = "v${version}"; tag = "v${finalAttrs.version}";
hash = "sha256-7EavT4IHEAe3nq6tkhX7qHpDzy7UTdBMZ7x/bquv4Z8="; hash = "sha256-7EavT4IHEAe3nq6tkhX7qHpDzy7UTdBMZ7x/bquv4Z8=";
}; };
@ -22,7 +22,7 @@ buildGoModule rec {
ldflags = [ ldflags = [
"-s -w" "-s -w"
"-X main.revision=v${version}" "-X main.revision=v${finalAttrs.version}"
]; ];
doCheck = false; doCheck = false;
@ -32,11 +32,11 @@ buildGoModule rec {
installManPage *.1 installManPage *.1
''; '';
meta = with lib; { meta = {
description = "Tool for effortless deployment and configuration management"; description = "Tool for effortless deployment and configuration management";
homepage = "https://spot.umputun.dev/"; homepage = "https://spot.umputun.dev/";
maintainers = with maintainers; [ sikmir ]; maintainers = with lib.maintainers; [ sikmir ];
license = licenses.mit; license = lib.licenses.mit;
mainProgram = "spot"; mainProgram = "spot";
}; };
} })