3
0
Fork 0
forked from mirrors/nixpkgs

autospotting: unstable-2018-11-17 -> unstable-2022-02-17

This commit is contained in:
Aaron Jheng 2022-05-13 14:36:07 +00:00
parent ff6e5ed3f3
commit e77fead6c7
No known key found for this signature in database
GPG key ID: F6A547A869D050A3

View file

@ -1,29 +1,28 @@
{ lib, buildGoPackage, fetchFromGitHub }: { lib, buildGoModule, fetchFromGitHub }:
buildGoPackage { buildGoModule rec {
pname = "autospotting"; pname = "autospotting";
version = "unstable-2018-11-17"; version = "unstable-2022-02-17";
goPackagePath = "github.com/AutoSpotting/AutoSpotting";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "AutoSpotting"; owner = "cloudutil";
repo = "AutoSpotting"; repo = "AutoSpotting";
rev = "122ab8f292a2f718dd85e79ec22acd455122907e"; rev = "f295a1f86c4a21144fc7fe28a69da5668fb7ad0c";
sha256 = "0p48lgig9kblxvgq1kggczkn4qdbx6ciq9c8x0179i80vl4jf7v6"; sha256 = "sha256-n5R5RM2fv3JWqtbSsyb7GWS4032dkgcihAKbpjB/5PM=";
}; };
# patching path where repository used to exist vendorSha256 = "sha256-w7OHGZ7zntu8ZlI5gA19Iq7TKR23BQk9KpkUO+njL9Q=";
postPatch = ''
sed -i "s+github.com/cristim/autospotting/core+github.com/AutoSpotting/AutoSpotting/core+" autospotting.go excludedPackages = [ "scripts" ];
'';
ldflags = [ "-s" "-w" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/AutoSpotting/AutoSpotting";
description = "Automatically convert your existing AutoScaling groups to up to 90% cheaper spot instances with minimal configuration changes"; description = "Automatically convert your existing AutoScaling groups to up to 90% cheaper spot instances with minimal configuration changes";
license = licenses.free; homepage = "https://github.com/cloudutil/AutoSpotting";
maintainers = [ maintainers.costrouc ]; license = licenses.osl3;
maintainers = with maintainers; [ costrouc ];
mainProgram = "AutoSpotting"; mainProgram = "AutoSpotting";
platforms = platforms.unix; platforms = platforms.unix;
}; };
} }