nixpkgs/pkgs/by-name/si/simplotask/package.nix
2024-04-24 02:42:22 +00:00

38 lines
793 B
Nix

{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "simplotask";
version = "1.15.1";
src = fetchFromGitHub {
owner = "umputun";
repo = "spot";
rev = "v${version}";
hash = "sha256-XLkq8Oe3EsP0wf0sA7NSZWIsQQnOAGmvlVQad35+5Ws=";
};
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://spot.umputun.dev/";
maintainers = with maintainers; [ sikmir ];
license = licenses.mit;
mainProgram = "spot";
};
}