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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
793 B
Nix
Raw Normal View History

2023-06-06 20:27:55 +00:00
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "simplotask";
2024-02-14 11:02:34 +00:00
version = "1.13.1";
2023-06-06 20:27:55 +00:00
src = fetchFromGitHub {
owner = "umputun";
repo = "spot";
rev = "v${version}";
2024-02-14 11:02:34 +00:00
hash = "sha256-Sg84Q5I82W2fz/CHh9ov0QPCzAoyqkNrATWNFnMrnEw=";
2023-06-06 20:27:55 +00:00
};
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";
2023-11-17 21:44:47 +00:00
homepage = "https://spot.umputun.dev/";
2023-06-06 20:27:55 +00:00
maintainers = with maintainers; [ sikmir ];
license = licenses.mit;
mainProgram = "spot";
};
}