depot/third_party/nixpkgs/pkgs/tools/misc/lifecycled/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

31 lines
817 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "lifecycled";
version = "3.3.0";
src = fetchFromGitHub {
owner = "buildkite";
repo = "lifecycled";
rev = "v${version}";
sha256 = "sha256-zskN2T0+1xZPjppggeGpPFuQ8/AgPNyN77F33rDoghc=";
};
vendorSha256 = "sha256-q5wYKSLHRzL+UGn29kr8+mUupOPR1zohTscbzjMRCS0=";
postInstall = ''
mkdir -p $out/lib/systemd/system
substitute init/systemd/lifecycled.unit $out/lib/systemd/system/lifecycled.service \
--replace /usr/bin/lifecycled $out/bin/lifecycled
'';
meta = with lib; {
description = "A daemon for responding to AWS AutoScaling Lifecycle Hooks";
homepage = "https://github.com/buildkite/lifecycled/";
license = licenses.mit;
maintainers = with maintainers; [ cole-h grahamc ];
};
}