git.iko.soy/typeable/nixpkgs
on master help sign in
google-authenticator: switch to fetchFromGitHub
commit41d512768f1ddb2bc64116e3b9d58d4ea63d0795 authorFelix Buehler <account@buehler.rocks> dateSun 19 Sep 2021, 17:07 (5 years ago) parent2653630
1 file changed+6−4
pkgs/os-specific/linux/google-authenticator/default.nix+6−4
pkgs/os-specific/linux/google-authenticator/default.nix+6−4
@@ -1,12 +1,14 @@
1−{ stdenv, lib, fetchurl, autoreconfHook, pam, qrencode }:
1+{ stdenv, lib, fetchFromGitHub, autoreconfHook, pam, qrencode }:
22
33stdenv.mkDerivation rec {
44 pname = "google-authenticator-libpam";
55 version = "1.09";
66
7− src = fetchurl {
8− url = "https://github.com/google/google-authenticator-libpam/archive/${version}.tar.gz";
9− sha256 = "0dyhgizl2jcrnfn5sxipxawqrbr6qgjh7aggw8fz3hix861pj7db";
7+ src = fetchFromGitHub {
8+ owner = "google";
9+ repo = "google-authenticator-libpam";
10+ rev = version;
11+ hash = "sha256-DS0h6FWMNKnSSj039bH6iyWrERa5M7LBSkbyig6pyxY=";
1012 };
1113
1214 nativeBuildInputs = [ autoreconfHook ];