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