5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
37 lines
790 B
Nix
37 lines
790 B
Nix
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
buildGoModule rec {
|
|
pname = "simplotask";
|
|
version = "1.9.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "umputun";
|
|
repo = "spot";
|
|
rev = "v${version}";
|
|
hash = "sha256-cUsxkp/cWA7odhPli00rVodX2FjM0xCl7g/uOlJQl3Y=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
ldflags = [
|
|
"-s -w"
|
|
"-X main.revision=v${version}"
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
mv $out/bin/{secrets,spot-secrets}
|
|
installManPage *.1
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A tool for effortless deployment and configuration management";
|
|
homepage = "https://simplotask.com/";
|
|
maintainers = with maintainers; [ sikmir ];
|
|
license = licenses.mit;
|
|
mainProgram = "spot";
|
|
};
|
|
}
|