google-authenticator: switch to fetchFromGitHub

+6 -4
+6 -4
pkgs/os-specific/linux/google-authenticator/default.nix
··· 1 - { stdenv, lib, fetchurl, autoreconfHook, pam, qrencode }: 2 3 stdenv.mkDerivation rec { 4 pname = "google-authenticator-libpam"; 5 version = "1.09"; 6 7 - src = fetchurl { 8 - url = "https://github.com/google/google-authenticator-libpam/archive/${version}.tar.gz"; 9 - sha256 = "0dyhgizl2jcrnfn5sxipxawqrbr6qgjh7aggw8fz3hix861pj7db"; 10 }; 11 12 nativeBuildInputs = [ autoreconfHook ];
··· 1 + { stdenv, lib, fetchFromGitHub, autoreconfHook, pam, qrencode }: 2 3 stdenv.mkDerivation rec { 4 pname = "google-authenticator-libpam"; 5 version = "1.09"; 6 7 + src = fetchFromGitHub { 8 + owner = "google"; 9 + repo = "google-authenticator-libpam"; 10 + rev = version; 11 + hash = "sha256-DS0h6FWMNKnSSj039bH6iyWrERa5M7LBSkbyig6pyxY="; 12 }; 13 14 nativeBuildInputs = [ autoreconfHook ];