git.iko.soy/typeable/nixpkgs
on master help sign in
googleAuthenticator: 1.0 -> 1.03
commit652a87018b9c86e02d7c7b5c627a19bd7b73543c authorAneesh Agrawal <aneeshusa@gmail.com> dateThu 29 Dec 2016, 04:13 (10 years ago) parenta94e5a8
1 file changed+9−8
pkgs/os-specific/linux/google-authenticator/default.nix+9−8
pkgs/os-specific/linux/google-authenticator/default.nix+9−8
@@ -1,27 +1,28 @@
1−{ stdenv, lib, fetchurl, pam, qrencode }:
1+{ stdenv, lib, fetchurl, autoreconfHook, pam, qrencode }:
22
33stdenv.mkDerivation rec {
4− name = "google-authenticator-1.0";
4+ name = "google-authenticator-libpam-${version}";
5+ version = "1.03";
56
67 src = fetchurl {
7− url = "https://google-authenticator.googlecode.com/files/libpam-${name}-source.tar.bz2";
8− sha1 = "017b7d89989f1624e360abe02d6b27a6298d285d";
8+ url = "https://github.com/google/google-authenticator-libpam/archive/${version}.tar.gz";
9+ sha256 = "0wb95z5v1w4sk0p7y9pbn4v95w9hrbf80vw9k2z2sgs0156ljkb7";
910 };
1011
11− buildInputs = [ pam ];
12+ buildInputs = [ autoreconfHook pam ];
1213
1314 preConfigure = ''
14− sed -i 's|libqrencode.so.3|${qrencode}/lib/libqrencode.so.3|' google-authenticator.c
15+ sed -i "s|libqrencode.so.3|${qrencode}/lib/libqrencode.so.3|" src/google-authenticator.c
1516 '';
1617
1718 installPhase = ''
1819 mkdir -p $out/bin $out/lib/security
19− cp pam_google_authenticator.so $out/lib/security
20+ cp ./.libs/pam_google_authenticator.so $out/lib/security
2021 cp google-authenticator $out/bin
2122 '';
2223
2324 meta = with lib; {
24− homepage = https://code.google.com/p/google-authenticator/;
25+ homepage = https://github.com/google/google-authenticator-libpam;
2526 description = "Two-step verification, with pam module";
2627 license = licenses.asl20;
2728 maintainers = with maintainers; [ aneeshusa ];