commit
deef19c9a1
@ -1,129 +0,0 @@ |
||||
[ |
||||
{ |
||||
goPackagePath = "github.com/Baozisoftware/qrcode-terminal-go"; |
||||
fetch = { |
||||
type = "git"; |
||||
url = "https://github.com/Baozisoftware/qrcode-terminal-go"; |
||||
rev = "c0650d8dff0f053901ff16185217b950d5e7743c"; |
||||
sha256 = "166h9zy9y7ygayhybg7d080hpdcf1mvkf3rwnq5lqg8i3cg71s7b"; |
||||
}; |
||||
} |
||||
{ |
||||
goPackagePath = "github.com/btcsuite/btcd"; |
||||
fetch = { |
||||
type = "git"; |
||||
url = "https://github.com/btcsuite/btcd"; |
||||
rev = "e9a51e8dcd673c563a549676ebd4384b0318a9b7"; |
||||
sha256 = "053pdhhycls7cpygg4rhc0y2p937ni4cgxylgxd1zpwffqdjsxrs"; |
||||
}; |
||||
} |
||||
{ |
||||
goPackagePath = "github.com/btcsuite/btclog"; |
||||
fetch = { |
||||
type = "git"; |
||||
url = "https://github.com/btcsuite/btclog"; |
||||
rev = "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a"; |
||||
sha256 = "02dl46wcnfpg9sqvg0ipipkpnd7lrf4fnvb9zy56jqa7mfcwc7wk"; |
||||
}; |
||||
} |
||||
{ |
||||
goPackagePath = "github.com/btcsuite/btcutil"; |
||||
fetch = { |
||||
type = "git"; |
||||
url = "https://github.com/btcsuite/btcutil"; |
||||
rev = "063c4115b3a9a7201e82447875383890698abcb6"; |
||||
sha256 = "12dpy5ipmd751xb71hcmrl9xyl89r5rflnrvypnz1irairfqwjwm"; |
||||
}; |
||||
} |
||||
{ |
||||
goPackagePath = "github.com/glendc/go-external-ip"; |
||||
fetch = { |
||||
type = "git"; |
||||
url = "https://github.com/glendc/go-external-ip"; |
||||
rev = "c872357d968e33d5d9c47ea2c603f3b411150ecc"; |
||||
sha256 = "1h9cdhab4fapa2p1r8sgl1pxv4qi1zskw8x0pj93a81y03zzr2l1"; |
||||
}; |
||||
} |
||||
{ |
||||
goPackagePath = "github.com/jessevdk/go-flags"; |
||||
fetch = { |
||||
type = "git"; |
||||
url = "https://github.com/jessevdk/go-flags"; |
||||
rev = "c17162fe8fd74f119ff938c5c67af63e3bac5ded"; |
||||
sha256 = "0byp3f79b0399n7g6nm59afb6gj9cknfqgfqadvpppv7lvnd34jf"; |
||||
}; |
||||
} |
||||
{ |
||||
goPackagePath = "github.com/lightningnetwork/lnd"; |
||||
fetch = { |
||||
type = "git"; |
||||
url = "https://github.com/lightningnetwork/lnd"; |
||||
rev = "fd962d322ae2a913cc357dbb63382f22a9a0a6ce"; |
||||
sha256 = "0yj2vqb9qg5v0rbchkpwhhw51rp31z76zchhhbc837sz8l8lryra"; |
||||
}; |
||||
} |
||||
{ |
||||
goPackagePath = "github.com/mattn/go-colorable"; |
||||
fetch = { |
||||
type = "git"; |
||||
url = "https://github.com/mattn/go-colorable"; |
||||
rev = "f6c00982823144337e56cdb71c712eaac151d29c"; |
||||
sha256 = "08y5c01bvyqxraj3wc0di80gbp87178rsshb74x0p3m7wwfv82l3"; |
||||
}; |
||||
} |
||||
{ |
||||
goPackagePath = "github.com/mattn/go-isatty"; |
||||
fetch = { |
||||
type = "git"; |
||||
url = "https://github.com/mattn/go-isatty"; |
||||
rev = "cb30d6282491c185f77d9bec5d25de1bb61a06bc"; |
||||
sha256 = "0v59mv94acd2m72q8adhigxkx1vn38l5h0d8hp0nxga2v9f3v8kd"; |
||||
}; |
||||
} |
||||
{ |
||||
goPackagePath = "github.com/miekg/dns"; |
||||
fetch = { |
||||
type = "git"; |
||||
url = "https://github.com/miekg/dns"; |
||||
rev = "7a5f1127f7f4e461b7400d6a9df1bc523e7448fd"; |
||||
sha256 = "1xwg6zwlxwkm1x121b3idir76h7wr9wmcdmg4vgj9hma903s63md"; |
||||
}; |
||||
} |
||||
{ |
||||
goPackagePath = "github.com/skip2/go-qrcode"; |
||||
fetch = { |
||||
type = "git"; |
||||
url = "https://github.com/skip2/go-qrcode"; |
||||
rev = "da1b6568686e89143e94f980a98bc2dbd5537f13"; |
||||
sha256 = "0pghd6y2x8a5fqy4rjn4d8j5jcslb236naycdza5an7vyvinsgs9"; |
||||
}; |
||||
} |
||||
{ |
||||
goPackagePath = "golang.org/x/crypto"; |
||||
fetch = { |
||||
type = "git"; |
||||
url = "https://go.googlesource.com/crypto"; |
||||
rev = "5c72a883971a4325f8c62bf07b6d38c20ea47a6a"; |
||||
sha256 = "1cimmqpajys001x6yq8ycklc4w34y7iwrksv7ayv7m7fgzhcjn3d"; |
||||
}; |
||||
} |
||||
{ |
||||
goPackagePath = "golang.org/x/net"; |
||||
fetch = { |
||||
type = "git"; |
||||
url = "https://go.googlesource.com/net"; |
||||
rev = "05aa5d4ee32165add31ddef9d5d3946713e5dc5e"; |
||||
sha256 = "1v532mdb32h2gan6lc9ssya2v1lk6nzyzqvxn5nkbxij9x4v1jkl"; |
||||
}; |
||||
} |
||||
{ |
||||
goPackagePath = "golang.org/x/sys"; |
||||
fetch = { |
||||
type = "git"; |
||||
url = "https://go.googlesource.com/sys"; |
||||
rev = "9d91bd62050c7b3011b7df0d2a4daa0042684420"; |
||||
sha256 = "0d2jjd7r0zwakd1d2g2qm59w6jc6sgg0sal5gc626i8nn9adj2jg"; |
||||
}; |
||||
} |
||||
] |
||||
|
@ -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; |
||||
}; |
||||
|
||||
} |
||||
|
Loading…
Reference in new issue