gen-oath-safe: init at 2017-01-23

This commit is contained in:
makefu 2017-07-01 02:14:31 +02:00
parent 0d4431cfe9
commit f075c0c9fa
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{ coreutils, fetchFromGitHub, libcaca, makeWrapper, python, openssl, qrencode, stdenv, yubikey-manager }:
stdenv.mkDerivation {
name = "gen-oath-safe-2017-01-23";
src = fetchFromGitHub {
owner = "mcepl";
repo = "gen-oath-safe";
rev = "fb53841";
sha256 = "0018kqmhg0861r5xkbis2a1rx49gyn0dxcyj05wap5ms7zz69m0m";
};
buildInputs = [ makeWrapper ];
buildPhase = ":";
installPhase =
let
path = stdenv.lib.makeBinPath [
coreutils
libcaca.bin
openssl.bin
python
qrencode
yubikey-manager
];
in
''
mkdir -p $out/bin
cp gen-oath-safe $out/bin/
wrapProgram $out/bin/gen-oath-safe \
--prefix PATH : ${path}
'';
meta = with stdenv.lib; {
homepage = https://github.com/mcepl/gen-oath-safe;
description = "Script for generating HOTP/TOTP keys (and QR code)";
platforms = platforms.unix;
license = licenses.mit;
maintainers = [ maintainers.makefu ];
};
}

View File

@ -2030,6 +2030,8 @@ with pkgs;
gdmap = callPackage ../tools/system/gdmap { };
gen-oath-safe = callPackage ../tools/security/gen-oath-safe { };
genext2fs = callPackage ../tools/filesystems/genext2fs { };
gengetopt = callPackage ../development/tools/misc/gengetopt { };