summary refs log tree commit diff
path: root/pkgs/tools/system/goreman/default.nix
blob: 9613ab8d65043f262ec5db0f3681e482ad47e15a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "goreman";
  version = "0.3.9";
  rev = "df1209e7cdbad10aecc0aa75d332bc32822925f5";

  src = fetchFromGitHub {
    owner = "mattn";
    repo = "goreman";
    rev = "v${version}";
    sha256 = "1irjf5i5ybdchyn42bamfq8pj3w00p633h1gg202n0vsr39h0bxw";
  };

  ldflags = [
    "-s"
    "-w"
    "-X main.revision=${builtins.substring 0 7 rev}"
  ];

  vendorSha256 = "sha256-+RFh6Ppxxs7P7DWqOBeEJTvPsBgOfopMjx22hPEI1/U=";

  doCheck = false;

  meta = with lib; {
    description = "foreman clone written in go language";
    homepage = "https://github.com/mattn/goreman";
    license = licenses.mit;
    maintainers = with maintainers; [ zimbatm ];
  };
}