tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
google-authenticator: switch to fetchFromGitHub
Felix Buehler
4 years ago
41d51276
2653630f
+6
-4
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
linux
google-authenticator
default.nix
+6
-4
pkgs/os-specific/linux/google-authenticator/default.nix
···
1
1
-
{ stdenv, lib, fetchurl, autoreconfHook, pam, qrencode }:
1
1
+
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pam, qrencode }:
2
2
3
3
stdenv.mkDerivation rec {
4
4
pname = "google-authenticator-libpam";
5
5
version = "1.09";
6
6
7
7
-
src = fetchurl {
8
8
-
url = "https://github.com/google/google-authenticator-libpam/archive/${version}.tar.gz";
9
9
-
sha256 = "0dyhgizl2jcrnfn5sxipxawqrbr6qgjh7aggw8fz3hix861pj7db";
7
7
+
src = fetchFromGitHub {
8
8
+
owner = "google";
9
9
+
repo = "google-authenticator-libpam";
10
10
+
rev = version;
11
11
+
hash = "sha256-DS0h6FWMNKnSSj039bH6iyWrERa5M7LBSkbyig6pyxY=";
10
12
};
11
13
12
14
nativeBuildInputs = [ autoreconfHook ];