2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-16 15:20:40 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "packet-cli";
|
2021-05-26 16:00:20 +00:00
|
|
|
version = "0.5.0";
|
2020-04-16 15:20:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "packethost";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-05-26 16:00:20 +00:00
|
|
|
sha256 = "0dlcx186l8kh6w3i4dvj7v90lhjkgvq1xkjb2vijy6399z41grw2";
|
2020-04-16 15:20:40 +00:00
|
|
|
};
|
|
|
|
|
2021-05-26 16:00:20 +00:00
|
|
|
vendorSha256 = "1y1c369gsaf5crkdvv5g8d9p2g5602x2gcj8zy1q3wjx9lwhl0i6";
|
2020-04-16 15:20:40 +00:00
|
|
|
|
2020-08-07 05:39:43 +00:00
|
|
|
postInstall = ''
|
|
|
|
ln -s $out/bin/packet-cli $out/bin/packet
|
|
|
|
'';
|
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-16 15:20:40 +00:00
|
|
|
description = "Official Packet CLI";
|
|
|
|
homepage = "https://github.com/packethost/packet-cli";
|
|
|
|
license = licenses.mit;
|
2021-05-26 16:00:20 +00:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne nshalman ];
|
2020-04-16 15:20:40 +00:00
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|