nixpkgs/pkgs/development/tools/packet-cli/default.nix

29 lines
654 B
Nix
Raw Normal View History

{ 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
'';
doCheck = false;
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
};
}