Merge pull request #172867 from aaronjheng/autospotting

autospotting: unstable-2018-11-17 -> unstable-2022-02-17
main
Mario Rodas 2 years ago committed by GitHub
commit ddd80fb206
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 29
      pkgs/applications/misc/autospotting/default.nix

@ -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;
}; };
} }

Loading…
Cancel
Save