6 , qtx11extras ? null # qt5 only
20 isQt5 = lib.versions.major qtbase.version == "5";
23 stdenv.mkDerivation (finalAttrs: {
27 src = fetchFromGitHub {
30 rev = "v${finalAttrs.version}";
31 hash = "sha256-55VvT7pHN0/HqxM4vMDQDgUwkVmO/8aOEOye8jcFzgI=";
46 ] ++ lib.optionals isQt5 [ qtx11extras ];
48 propagatedBuildInputs = [ mpv ];
51 wrapProgram "$out/bin/memento" \
52 --prefix PATH : "${yt-dlp}/bin" \
56 description = "An mpv-based video player for studying Japanese";
57 homepage = "https://ripose-jp.github.io/Memento/";
58 license = licenses.gpl2;
59 maintainers = with maintainers; [ teto ];
60 platforms = platforms.linux;
61 mainProgram = "memento";