From de81be0d53205c142e201d84a912c6f5d3c3edd1 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Tue, 15 Mar 2022 11:31:08 +0100 Subject: [PATCH] telegram-purple: switch to fetchFromGitHub --- .../pidgin-plugins/telegram-purple/default.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/pidgin-plugins/telegram-purple/default.nix b/pkgs/applications/networking/instant-messengers/pidgin-plugins/telegram-purple/default.nix index 527af9ed98db..6f7aab564fac 100644 --- a/pkgs/applications/networking/instant-messengers/pidgin-plugins/telegram-purple/default.nix +++ b/pkgs/applications/networking/instant-messengers/pidgin-plugins/telegram-purple/default.nix @@ -1,16 +1,14 @@ -{ lib, stdenv, fetchgit, pkg-config, pidgin, libwebp, libgcrypt, gettext } : +{ lib, stdenv, fetchFromGitHub, pkg-config, pidgin, libwebp, libgcrypt, gettext } : -let - version = "1.3.1"; -in stdenv.mkDerivation rec { pname = "telegram-purple"; - inherit version; + version = "1.3.1"; - src = fetchgit { - url = "https://github.com/majn/telegram-purple"; + src = fetchFromGitHub { + owner = "majn"; + repo = "telegram-purple"; rev = "v${version}"; - sha256 = "0p93jpjpx7hszwffzgixw04zkrpsiyzz4za3gfr4j07krc4771fp"; + sha256 = "sha256-14VzCMvzAEmye0N98r+P+ub5CeA9vu8c/xqefuWVI10="; }; NIX_CFLAGS_COMPILE = "-Wno-error=cast-function-type";