aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/misc/autospotting/default.nix
blob: f2e922e5b4d16aab5b2bd200ac9000c8e7ef2ae1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, buildGoPackage, fetchFromGitHub }:

buildGoPackage {
  pname = "autospotting";
  version = "unstable-2018-11-17";
  goPackagePath = "github.com/AutoSpotting/AutoSpotting";

  src = fetchFromGitHub {
    owner = "AutoSpotting";
    repo = "AutoSpotting";
    rev = "122ab8f292a2f718dd85e79ec22acd455122907e";
    sha256 = "0p48lgig9kblxvgq1kggczkn4qdbx6ciq9c8x0179i80vl4jf7v6";
  };

  # patching path where repository used to exist
  postPatch = ''
    sed -i "s+github.com/cristim/autospotting/core+github.com/AutoSpotting/AutoSpotting/core+" autospotting.go
  '';

  meta = with stdenv.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 ];
    platforms = platforms.unix;
  };

}