about summary refs log tree commit diff
path: root/pkgs/applications/misc/autospotting
diff options
context:
space:
mode:
authorAaron Jheng <wentworth@outlook.com>2022-05-13 14:36:07 +0000
committerAaron Jheng <wentworth@outlook.com>2022-05-13 14:36:07 +0000
commite77fead6c7b7a98ea8c474baec81b1e5d5765578 (patch)
treec9bf5c516d79d6f69a254fef72f1f8829540e919 /pkgs/applications/misc/autospotting
parentff6e5ed3f3bbe89645e785ef2cf4badf404fd3f3 (diff)
autospotting: unstable-2018-11-17 -> unstable-2022-02-17
Diffstat (limited to 'pkgs/applications/misc/autospotting')
-rw-r--r--pkgs/applications/misc/autospotting/default.nix29
1 files changed, 14 insertions, 15 deletions
diff --git a/pkgs/applications/misc/autospotting/default.nix b/pkgs/applications/misc/autospotting/default.nix
index 47cf2e6b07ef8..a0bc7ba01a90d 100644
--- a/pkgs/applications/misc/autospotting/default.nix
+++ b/pkgs/applications/misc/autospotting/default.nix
@@ -1,29 +1,28 @@
-{ lib, buildGoPackage, fetchFromGitHub }:
+{ lib, buildGoModule, fetchFromGitHub }:
 
-buildGoPackage {
+buildGoModule rec {
   pname = "autospotting";
-  version = "unstable-2018-11-17";
-  goPackagePath = "github.com/AutoSpotting/AutoSpotting";
+  version = "unstable-2022-02-17";
 
   src = fetchFromGitHub {
-    owner = "AutoSpotting";
+    owner = "cloudutil";
     repo = "AutoSpotting";
-    rev = "122ab8f292a2f718dd85e79ec22acd455122907e";
-    sha256 = "0p48lgig9kblxvgq1kggczkn4qdbx6ciq9c8x0179i80vl4jf7v6";
+    rev = "f295a1f86c4a21144fc7fe28a69da5668fb7ad0c";
+    sha256 = "sha256-n5R5RM2fv3JWqtbSsyb7GWS4032dkgcihAKbpjB/5PM=";
   };
 
-  # patching path where repository used to exist
-  postPatch = ''
-    sed -i "s+github.com/cristim/autospotting/core+github.com/AutoSpotting/AutoSpotting/core+" autospotting.go
-  '';
+  vendorSha256 = "sha256-w7OHGZ7zntu8ZlI5gA19Iq7TKR23BQk9KpkUO+njL9Q=";
+
+  excludedPackages = [ "scripts" ];
+
+  ldflags = [ "-s" "-w" ];
 
   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";
-    license = licenses.free;
-    maintainers = [ maintainers.costrouc ];
+    homepage = "https://github.com/cloudutil/AutoSpotting";
+    license = licenses.osl3;
+    maintainers = with maintainers; [ costrouc ];
     mainProgram = "AutoSpotting";
     platforms = platforms.unix;
   };
-
 }