about summary refs log tree commit diff
path: root/pkgs/development/tools/packet-cli/default.nix
blob: ff0dead13e4e10c905b2b8d0fb2bb5e1f23576ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "packet-cli";
  version = "0.3.0";

  src = fetchFromGitHub {
    owner = "packethost";
    repo = pname;
    rev = version;
    sha256 = "sha256-P1Bn6vli0d/MroHUsioTWBrjWN+UZmSo3qmzo+fCDwM=";
  };

  vendorSha256 = "sha256-PjKiUdhN87guPAa0loZrWYuwbl0HaspuIjmKgyq4Zp8=";

  postInstall = ''
    ln -s $out/bin/packet-cli $out/bin/packet
  '';

  doCheck = false;

  meta = with lib; {
    description = "Official Packet CLI";
    homepage = "https://github.com/packethost/packet-cli";
    license = licenses.mit;
    maintainers = with maintainers; [ Br1ght0ne ];
  };
}