google-authenticator: switch to fetchFromGitHub
This commit is contained in:
parent
2653630f27
commit
41d512768f
@ -1,12 +1,14 @@
|
||||
{ stdenv, lib, fetchurl, autoreconfHook, pam, qrencode }:
|
||||
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pam, qrencode }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "google-authenticator-libpam";
|
||||
version = "1.09";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/google/google-authenticator-libpam/archive/${version}.tar.gz";
|
||||
sha256 = "0dyhgizl2jcrnfn5sxipxawqrbr6qgjh7aggw8fz3hix861pj7db";
|
||||
src = fetchFromGitHub {
|
||||
owner = "google";
|
||||
repo = "google-authenticator-libpam";
|
||||
rev = version;
|
||||
hash = "sha256-DS0h6FWMNKnSSj039bH6iyWrERa5M7LBSkbyig6pyxY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
Loading…
Reference in New Issue
Block a user