From e4f471da97235b168e5a67b8a9d455b1b9f50c89 Mon Sep 17 00:00:00 2001 From: Cole Mickens Date: Thu, 6 Aug 2020 21:42:52 -0700 Subject: [PATCH 1/2] packet-cli: 0.0.7 -> 0.0.8 --- pkgs/development/tools/packet-cli/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/packet-cli/default.nix b/pkgs/development/tools/packet-cli/default.nix index 40561671c593..aeb54c2212df 100644 --- a/pkgs/development/tools/packet-cli/default.nix +++ b/pkgs/development/tools/packet-cli/default.nix @@ -2,16 +2,16 @@ buildGoModule rec { pname = "packet-cli"; - version = "0.0.7"; + version = "0.0.8"; src = fetchFromGitHub { owner = "packethost"; repo = pname; rev = version; - sha256 = "1ixdqq0xwy2l2m1w93rzqw5gfrzw7w03r42qab3n733m4jkf4ni1"; + sha256 = "0ys6zyhyi65g0sj15pb6rslgbjgkh73y32gc0yvhfd6xmgzaxpxf"; }; - vendorSha256 = "10praxaiscxq4v3zknrabldxl7rpklkr5wdlwa5lxsx0if8mrvp7"; + vendorSha256 = "1h9p3hrr61hwkhkh4qbw0ld3hd5xi75qm8rwfrpz5z06jba1ll25"; meta = with stdenv.lib; { description = "Official Packet CLI"; From dc5428e70b0ae9c7470c7d0e44bc0239fd1a4fd4 Mon Sep 17 00:00:00 2001 From: Cole Mickens Date: Thu, 6 Aug 2020 22:39:43 -0700 Subject: [PATCH 2/2] packet-cli: alias packet-cli as packet --- pkgs/development/tools/packet-cli/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/tools/packet-cli/default.nix b/pkgs/development/tools/packet-cli/default.nix index aeb54c2212df..9a716a72eb01 100644 --- a/pkgs/development/tools/packet-cli/default.nix +++ b/pkgs/development/tools/packet-cli/default.nix @@ -13,6 +13,10 @@ buildGoModule rec { vendorSha256 = "1h9p3hrr61hwkhkh4qbw0ld3hd5xi75qm8rwfrpz5z06jba1ll25"; + postInstall = '' + ln -s $out/bin/packet-cli $out/bin/packet + ''; + meta = with stdenv.lib; { description = "Official Packet CLI"; homepage = "https://github.com/packethost/packet-cli";