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-04-05 03:24:53 +01:00
|
|
|
version = "0.3.0";
|
2020-04-16 16:20:40 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "packethost";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-04-05 03:24:53 +01:00
|
|
|
sha256 = "sha256-P1Bn6vli0d/MroHUsioTWBrjWN+UZmSo3qmzo+fCDwM=";
|
2020-04-16 16:20:40 +01:00
|
|
|
};
|
|
|
|
|
2021-04-05 03:24:53 +01:00
|
|
|
vendorSha256 = "sha256-PjKiUdhN87guPAa0loZrWYuwbl0HaspuIjmKgyq4Zp8=";
|
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;
|
2020-11-17 11:02:06 +00:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne ];
|
2020-04-16 16:20:40 +01:00
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|