1 { coreutils, fetchFromGitHub, file, libcaca, makeWrapper, python3, openssl, qrencode, lib, stdenv, yubikey-manager }:
3 stdenv.mkDerivation rec {
4 pname = "gen-oath-safe";
6 src = fetchFromGitHub {
8 repo = "gen-oath-safe";
10 sha256 = "1914z0jgj7lni0nf3hslkjgkv87mhxdr92cmhmbzhpjgjgr23ydp";
13 nativeBuildInputs = [ makeWrapper ];
19 path = lib.makeBinPath [
31 cp gen-oath-safe $out/bin/
32 wrapProgram $out/bin/gen-oath-safe \
33 --prefix PATH : ${path}
36 homepage = "https://github.com/mcepl/gen-oath-safe";
37 description = "Script for generating HOTP/TOTP keys (and QR code)";
38 platforms = platforms.unix;
39 license = licenses.mit;
40 maintainers = [ maintainers.makefu ];
41 mainProgram = "gen-oath-safe";