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

29 lines
655 B
Nix
Raw Normal View History

2020-04-16 15:20:40 +00:00
{ stdenv, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "packet-cli";
2020-11-11 19:37:17 +00:00
version = "0.1.1";
2020-04-16 15:20:40 +00:00
src = fetchFromGitHub {
owner = "packethost";
repo = pname;
rev = version;
2020-11-11 19:37:17 +00:00
sha256 = "089fcn7yslijjivyvwl85j32gfwif8aazqdhm6hi676lz80ssppp";
2020-04-16 15:20:40 +00:00
};
2020-11-11 19:37:17 +00:00
vendorSha256 = "1p3v4pzw9hc1iviv1zghw9imbd23nlp24dpa8hf0w8a03jvpy96x";
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;
2020-04-16 15:20:40 +00:00
meta = with stdenv.lib; {
description = "Official Packet CLI";
homepage = "https://github.com/packethost/packet-cli";
license = licenses.mit;
maintainers = with maintainers; [ Br1ght0ne ];
2020-04-16 15:20:40 +00:00
};
}