1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 installShellFiles,
6}:
7
8buildGoModule (finalAttrs: {
9 pname = "simplotask";
10 version = "1.17.2";
11
12 src = fetchFromGitHub {
13 owner = "umputun";
14 repo = "spot";
15 tag = "v${finalAttrs.version}";
16 hash = "sha256-7EavT4IHEAe3nq6tkhX7qHpDzy7UTdBMZ7x/bquv4Z8=";
17 };
18
19 vendorHash = null;
20
21 nativeBuildInputs = [ installShellFiles ];
22
23 ldflags = [
24 "-s -w"
25 "-X main.revision=v${finalAttrs.version}"
26 ];
27
28 doCheck = false;
29
30 postInstall = ''
31 mv $out/bin/{secrets,spot-secrets}
32 installManPage *.1
33 '';
34
35 meta = {
36 description = "Tool for effortless deployment and configuration management";
37 homepage = "https://spot.umputun.dev/";
38 maintainers = with lib.maintainers; [ sikmir ];
39 license = lib.licenses.mit;
40 mainProgram = "spot";
41 };
42})