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 {
|
stdenv.mkDerivation rec {
|
||||||
pname = "google-authenticator-libpam";
|
pname = "google-authenticator-libpam";
|
||||||
version = "1.09";
|
version = "1.09";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/google/google-authenticator-libpam/archive/${version}.tar.gz";
|
owner = "google";
|
||||||
sha256 = "0dyhgizl2jcrnfn5sxipxawqrbr6qgjh7aggw8fz3hix861pj7db";
|
repo = "google-authenticator-libpam";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-DS0h6FWMNKnSSj039bH6iyWrERa5M7LBSkbyig6pyxY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
|
|
Loading…
Reference in a new issue