mini-calc: 3.3.3 -> 3.3.5 (#372274)
[NixPkgs.git] / pkgs / by-name / li / lifecycled / package.nix
blob8605f701fe1bc93285f4f94fbcb92324ae10edbe
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5 }:
6 buildGoModule rec {
7   pname = "lifecycled";
8   version = "3.3.0";
10   src = fetchFromGitHub {
11     owner = "buildkite";
12     repo = "lifecycled";
13     rev = "v${version}";
14     sha256 = "sha256-zskN2T0+1xZPjppggeGpPFuQ8/AgPNyN77F33rDoghc=";
15   };
17   vendorHash = "sha256-q5wYKSLHRzL+UGn29kr8+mUupOPR1zohTscbzjMRCS0=";
19   postInstall = ''
20     mkdir -p $out/lib/systemd/system
21     substitute init/systemd/lifecycled.unit $out/lib/systemd/system/lifecycled.service \
22       --replace /usr/bin/lifecycled $out/bin/lifecycled
23   '';
25   meta = with lib; {
26     description = "Daemon for responding to AWS AutoScaling Lifecycle Hooks";
27     homepage = "https://github.com/buildkite/lifecycled/";
28     license = licenses.mit;
29     maintainers = with maintainers; [
30       cole-h
31       grahamc
32     ];
33   };