2020-04-16 16:20:40 +01:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "packet-cli";
|
2020-08-07 05:42:52 +01:00
|
|
|
version = "0.0.8";
|
2020-04-16 16:20:40 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "packethost";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-08-07 05:42:52 +01:00
|
|
|
sha256 = "0ys6zyhyi65g0sj15pb6rslgbjgkh73y32gc0yvhfd6xmgzaxpxf";
|
2020-04-16 16:20:40 +01:00
|
|
|
};
|
|
|
|
|
2020-08-07 05:42:52 +01:00
|
|
|
vendorSha256 = "1h9p3hrr61hwkhkh4qbw0ld3hd5xi75qm8rwfrpz5z06jba1ll25";
|
2020-04-16 16:20:40 +01:00
|
|
|
|
2020-08-07 06:39:43 +01:00
|
|
|
postInstall = ''
|
|
|
|
ln -s $out/bin/packet-cli $out/bin/packet
|
|
|
|
'';
|
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-04-16 16:20:40 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Official Packet CLI";
|
|
|
|
homepage = "https://github.com/packethost/packet-cli";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ filalex77 ];
|
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|