packet: refactor

+9 -9
+9 -9
pkgs/development/tools/packet/default.nix
··· 1 - # This file was generated by https://github.com/kamilchm/go2nix v1.2.1 2 - { lib, buildGoPackage, fetchgit }: 3 4 buildGoPackage rec { 5 pname = "packet"; ··· 7 8 goPackagePath = "github.com/ebsarr/packet"; 9 10 - src = fetchgit { 11 rev = "v${version}"; 12 - url = "https://github.com/ebsarr/packet"; 13 - sha256 = "18n8f2rlab4icb28k1b9gnh30zy382v792x07fmcdqq4nkw6wvwf"; 14 }; 15 16 goDeps = ./deps.nix; 17 18 - meta = { 19 description = "a CLI tool to manage packet.net services"; 20 homepage = "https://github.com/ebsarr/packet"; 21 - license = lib.licenses.mit; 22 - maintainers = [ lib.maintainers.grahamc ]; 23 - platforms = lib.platforms.unix; 24 }; 25 }
··· 1 + { lib, buildGoPackage, fetchFromGitHub }: 2 3 buildGoPackage rec { 4 pname = "packet"; ··· 6 7 goPackagePath = "github.com/ebsarr/packet"; 8 9 + src = fetchFromGitHub { 10 + owner = "ebsarr"; 11 + repo = "packet"; 12 rev = "v${version}"; 13 + sha256 = "sha256-jm9u+LQE48aqO6CLdLZAw38woH1phYnEYpEsRbNwyKI="; 14 }; 15 16 goDeps = ./deps.nix; 17 18 + meta = with lib; { 19 description = "a CLI tool to manage packet.net services"; 20 homepage = "https://github.com/ebsarr/packet"; 21 + license = licenses.mit; 22 + maintainers = with maintainers; [ grahamc ]; 23 + platforms = platforms.unix; 24 }; 25 }