depot/third_party/nixpkgs/pkgs/applications/video/memento/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

60 lines
1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, qt6
, wrapQtAppsHook
# before that => zeal
, sqlite
, json_c
, mecab
, libzip
, mpv
, yt-dlp
# optional
, makeWrapper}:
stdenv.mkDerivation (finalAttrs: {
pname = "memento";
version = "1.4.1";
src = fetchFromGitHub {
owner = "ripose-jp";
repo = "Memento";
rev = "v${finalAttrs.version}";
hash = "sha256-3WOtf7cgYxAMlNPSBmTzaQF1HN9mU61giLp2woBAidY=";
};
nativeBuildInputs = [
cmake
makeWrapper
wrapQtAppsHook
];
buildInputs = [
qt6.qtbase
qt6.qtsvg
qt6.qtwayland
sqlite
json_c
libzip
mecab
];
propagatedBuildInputs = [ mpv ];
preFixup = ''
wrapProgram "$out/bin/memento" \
--prefix PATH : "${yt-dlp}/bin" \
'';
meta = with lib; {
description = "Mpv-based video player for studying Japanese";
homepage = "https://ripose-jp.github.io/Memento/";
license = licenses.gpl2;
maintainers = with maintainers; [ teto ];
platforms = platforms.linux;
mainProgram = "memento";
};
})