2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-16 16:20:40 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "packet-cli";
|
2021-05-26 17:00:20 +01:00
|
|
|
version = "0.5.0";
|
2020-04-16 16:20:40 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "packethost";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-05-26 17:00:20 +01:00
|
|
|
sha256 = "0dlcx186l8kh6w3i4dvj7v90lhjkgvq1xkjb2vijy6399z41grw2";
|
2020-04-16 16:20:40 +01:00
|
|
|
};
|
|
|
|
|
2021-05-26 17:00:20 +01:00
|
|
|
vendorSha256 = "1y1c369gsaf5crkdvv5g8d9p2g5602x2gcj8zy1q3wjx9lwhl0i6";
|
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;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-16 16:20:40 +01:00
|
|
|
description = "Official Packet CLI";
|
|
|
|
homepage = "https://github.com/packethost/packet-cli";
|
|
|
|
license = licenses.mit;
|
2021-05-26 17:00:20 +01:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne nshalman ];
|
2020-04-16 16:20:40 +01:00
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|