@@ -0,0 +1,41 @@
1+{ coreutils, fetchFromGitHub, libcaca, makeWrapper, python, openssl, qrencode, stdenv, yubikey-manager }:
4+ name = "gen-oath-safe-2017-01-23";
5+ src = fetchFromGitHub {
7+ repo = "gen-oath-safe";
9+ sha256 = "0018kqmhg0861r5xkbis2a1rx49gyn0dxcyj05wap5ms7zz69m0m";
12+ buildInputs = [ makeWrapper ];
18+ path = stdenv.lib.makeBinPath [
29+ cp gen-oath-safe $out/bin/
30+ wrapProgram $out/bin/gen-oath-safe \
31+ --prefix PATH : ${path}
33+ meta = with stdenv.lib; {
34+ homepage = https://github.com/mcepl/gen-oath-safe;
35+ description = "Script for generating HOTP/TOTP keys (and QR code)";
36+ platforms = platforms.unix;
37+ license = licenses.mit;
38+ maintainers = [ maintainers.makefu ];