depot/third_party/nixpkgs/pkgs/tools/misc/lifecycled/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

31 lines
803 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "lifecycled";
version = "3.1.0";
src = fetchFromGitHub {
owner = "buildkite";
repo = "lifecycled";
rev = "v${version}";
sha256 = "F9eovZpwbigP0AMdjAIxULPLDC3zO6GxQmPdt5Xvpkk=";
};
vendorSha256 = "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 ];
};
}