From e822bf4e6b671a9e735f913808aa50c9c0c09cd0 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Tue, 8 Mar 2022 14:41:59 +0100 Subject: [PATCH] ua: switch to fetchFromGitHub --- pkgs/tools/networking/ua/default.nix | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/pkgs/tools/networking/ua/default.nix b/pkgs/tools/networking/ua/default.nix index feb17b283de5..4190e8102147 100644 --- a/pkgs/tools/networking/ua/default.nix +++ b/pkgs/tools/networking/ua/default.nix @@ -1,19 +1,19 @@ -{ lib, buildGoPackage, fetchgit +{ lib, buildGoPackage, fetchFromGitHub , pkg-config , glib, libxml2 }: buildGoPackage rec { - pname = "ua-unstable"; - version = "2017-02-24"; - rev = "325dab92c60e0f028e55060f0c288aa70905fb17"; + pname = "ua"; + version = "unstable-2017-02-24"; goPackagePath = "github.com/sloonz/ua"; - src = fetchgit { - inherit rev; - url = "https://github.com/sloonz/ua.git"; - sha256 = "0452qknc8km9495324g6b5ja3shvk8jl7aa9nrjhdylf09dp2nif"; + src = fetchFromGitHub { + owner = "sloonz"; + repo = "ua"; + rev = "325dab92c60e0f028e55060f0c288aa70905fb17"; + sha256 = "sha256-LlpxWwKO+gZltkmpQyWaG+qhZFnmETFKIqlOxOzEohA="; }; goDeps = ./deps.nix; @@ -21,11 +21,10 @@ buildGoPackage rec { nativeBuildInputs = [ pkg-config ]; buildInputs = [ glib libxml2 ]; - meta = { + meta = with lib; { homepage = "https://github.com/sloonz/ua"; - license = lib.licenses.isc; + license = licenses.isc; description = "Universal Aggregator"; - platforms = lib.platforms.unix; - maintainers = with lib.maintainers; [ ttuegel ]; + maintainers = with maintainers; [ ttuegel ]; }; }