nixpkgs/pkgs/tools/misc/lifecycled/default.nix

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

32 lines
817 B
Nix
Raw Normal View History

2021-03-01 19:03:31 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "lifecycled";
2022-10-21 20:14:39 +00:00
version = "3.3.0";
2021-03-01 19:03:31 +00:00
src = fetchFromGitHub {
owner = "buildkite";
repo = "lifecycled";
rev = "v${version}";
2022-10-21 20:14:39 +00:00
sha256 = "sha256-zskN2T0+1xZPjppggeGpPFuQ8/AgPNyN77F33rDoghc=";
2021-03-01 19:03:31 +00:00
};
2021-08-14 14:22:50 +00:00
vendorSha256 = "sha256-q5wYKSLHRzL+UGn29kr8+mUupOPR1zohTscbzjMRCS0=";
2021-03-01 19:03:31 +00:00
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 ];
};
}