15 stdenv.mkDerivation rec {
16 pname = "gen-oath-safe";
18 src = fetchFromGitHub {
20 repo = "gen-oath-safe";
22 sha256 = "1914z0jgj7lni0nf3hslkjgkv87mhxdr92cmhmbzhpjgjgr23ydp";
25 nativeBuildInputs = [ makeWrapper ];
31 path = lib.makeBinPath [
43 cp gen-oath-safe $out/bin/
44 wrapProgram $out/bin/gen-oath-safe \
45 --prefix PATH : ${path}
48 homepage = "https://github.com/mcepl/gen-oath-safe";
49 description = "Script for generating HOTP/TOTP keys (and QR code)";
50 platforms = platforms.unix;
51 license = licenses.mit;
52 maintainers = [ maintainers.makefu ];
53 mainProgram = "gen-oath-safe";