2022-06-16 17:23:12 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "autospotting";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "unstable-2022-02-17";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-06-16 17:23:12 +00:00
|
|
|
owner = "cloudutil";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "AutoSpotting";
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "f295a1f86c4a21144fc7fe28a69da5668fb7ad0c";
|
|
|
|
sha256 = "sha256-n5R5RM2fv3JWqtbSsyb7GWS4032dkgcihAKbpjB/5PM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
vendorSha256 = "sha256-w7OHGZ7zntu8ZlI5gA19Iq7TKR23BQk9KpkUO+njL9Q=";
|
|
|
|
|
|
|
|
excludedPackages = [ "scripts" ];
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Automatically convert your existing AutoScaling groups to up to 90% cheaper spot instances with minimal configuration changes";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://github.com/cloudutil/AutoSpotting";
|
|
|
|
license = licenses.osl3;
|
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2022-04-27 09:35:20 +00:00
|
|
|
mainProgram = "AutoSpotting";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|