2022-05-13 16:36:07 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2018-11-13 15:15:51 +01:00
|
|
|
|
2022-05-13 16:36:07 +02:00
|
|
|
buildGoModule rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "autospotting";
|
2023-07-04 04:30:39 +02:00
|
|
|
version = "unstable-2023-07-03";
|
2018-11-13 15:15:51 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-07-04 04:30:39 +02:00
|
|
|
owner = "LeanerCloud";
|
2018-11-13 15:15:51 +01:00
|
|
|
repo = "AutoSpotting";
|
2023-07-04 04:30:39 +02:00
|
|
|
rev = "6b08f61d72eafddf01bb68ccb789505f1c7be3eb";
|
|
|
|
hash = "sha256-gW8AIPqwNXfjsPxPv/5+gF374wTw8iavhjmlG4Onkxg=";
|
2018-11-13 15:15:51 +01:00
|
|
|
};
|
|
|
|
|
2023-07-04 04:30:39 +02:00
|
|
|
vendorHash = "sha256-RuBchKainwE6RM3AphKWjndGZc1nh7A/Xxcacq1r7Nk=";
|
2022-05-13 16:36:07 +02:00
|
|
|
|
|
|
|
excludedPackages = [ "scripts" ];
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
2018-11-13 15:15:51 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-11-13 15:15:51 +01:00
|
|
|
description = "Automatically convert your existing AutoScaling groups to up to 90% cheaper spot instances with minimal configuration changes";
|
2022-05-13 16:36:07 +02:00
|
|
|
homepage = "https://github.com/cloudutil/AutoSpotting";
|
|
|
|
license = licenses.osl3;
|
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2022-04-01 21:34:55 +02:00
|
|
|
mainProgram = "AutoSpotting";
|
2018-11-13 15:15:51 +01:00
|
|
|
};
|
|
|
|
}
|