depot/third_party/nixpkgs/pkgs/tools/admin/simplotask/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

37 lines
791 B
Nix

{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "simplotask";
version = "1.11.5";
src = fetchFromGitHub {
owner = "umputun";
repo = "spot";
rev = "v${version}";
hash = "sha256-ZPmYAUfkWo+inD2CwzT4Hncsshk3Y2W6aldy/5v1sks=";
};
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";
};
}