From 6dc76f3f04ec0682cae3d2123eb85f658c03b830 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Mon, 28 Feb 2022 15:00:20 +0100 Subject: [PATCH] packet: refactor --- pkgs/development/tools/packet/default.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pkgs/development/tools/packet/default.nix b/pkgs/development/tools/packet/default.nix index 173ff4770daf..61e9b210683f 100644 --- a/pkgs/development/tools/packet/default.nix +++ b/pkgs/development/tools/packet/default.nix @@ -1,5 +1,4 @@ -# This file was generated by https://github.com/kamilchm/go2nix v1.2.1 -{ lib, buildGoPackage, fetchgit }: +{ lib, buildGoPackage, fetchFromGitHub }: buildGoPackage rec { pname = "packet"; @@ -7,19 +6,20 @@ buildGoPackage rec { goPackagePath = "github.com/ebsarr/packet"; - src = fetchgit { + src = fetchFromGitHub { + owner = "ebsarr"; + repo = "packet"; rev = "v${version}"; - url = "https://github.com/ebsarr/packet"; - sha256 = "18n8f2rlab4icb28k1b9gnh30zy382v792x07fmcdqq4nkw6wvwf"; + sha256 = "sha256-jm9u+LQE48aqO6CLdLZAw38woH1phYnEYpEsRbNwyKI="; }; goDeps = ./deps.nix; - meta = { + meta = with lib; { description = "a CLI tool to manage packet.net services"; homepage = "https://github.com/ebsarr/packet"; - license = lib.licenses.mit; - maintainers = [ lib.maintainers.grahamc ]; - platforms = lib.platforms.unix; + license = licenses.mit; + maintainers = with maintainers; [ grahamc ]; + platforms = platforms.unix; }; }