depot/third_party/nixpkgs/pkgs/tools/admin/simplotask/default.nix

38 lines
790 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "simplotask";
version = "1.8.1";
src = fetchFromGitHub {
owner = "umputun";
repo = "spot";
rev = "v${version}";
hash = "sha256-u2Nj8AgkqwocxQMcPszzLaUu9vrbAA/cKjEqqxnbnr8=";
};
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";
};
}