mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
25 lines
615 B
Nix
25 lines
615 B
Nix
{ stdenv, fetchurl, pam }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "google-authenticator-1.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://google-authenticator.googlecode.com/files/libpam-${name}-source.tar.bz2";
|
|
sha1 = "017b7d89989f1624e360abe02d6b27a6298d285d";
|
|
};
|
|
|
|
buildInputs = [ pam ];
|
|
|
|
installPhase = ''
|
|
ensureDir $out/bin $out/lib/security
|
|
cp pam_google_authenticator.so $out/lib/security
|
|
cp google-authenticator $out/bin
|
|
'';
|
|
|
|
meta = {
|
|
homepage = https://code.google.com/p/google-authenticator/;
|
|
description = "Two-step verification, with pam module";
|
|
license = "ASL2.0";
|
|
};
|
|
}
|