2022-01-31 13:55:14 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-04-13 16:30:05 +02:00
|
|
|
|
2022-01-31 13:55:14 +01:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "goreman";
|
2022-03-19 14:33:03 +01:00
|
|
|
version = "0.3.11";
|
|
|
|
rev = "6006c6e410ec5a5ba22b50e96227754a42f2834d";
|
2019-04-13 16:30:05 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mattn";
|
|
|
|
repo = "goreman";
|
|
|
|
rev = "v${version}";
|
2022-03-19 14:33:03 +01:00
|
|
|
sha256 = "sha256-TbJfeU94wakI2028kDqU+7dRRmqXuqpPeL4XBaA/HPo=";
|
2019-04-13 16:30:05 +02:00
|
|
|
};
|
|
|
|
|
2022-01-31 13:55:14 +01:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.revision=${builtins.substring 0 7 rev}"
|
|
|
|
];
|
|
|
|
|
2022-03-19 14:33:03 +01:00
|
|
|
vendorSha256 = "sha256-87aHBRWm5Odv6LeshZty5N31sC+vdSwGlTYhk3BZkPo=";
|
2022-01-31 13:55:14 +01:00
|
|
|
|
2019-04-13 16:30:05 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "foreman clone written in go language";
|
|
|
|
homepage = "https://github.com/mattn/goreman";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
|
|
};
|
|
|
|
}
|