diff options
author | shenleban tongying <shenlebantongying@gmail.com> | 2023-08-02 13:25:18 -0400 |
---|---|---|
committer | shenleban tongying <shenlebantongying@gmail.com> | 2023-08-02 13:32:35 -0400 |
commit | 4412cff10a28795565fcbf4d3edd9a6fa02bee54 (patch) | |
tree | e63855730bb00a109dced853ea251408bed8b00b | |
parent | 521f3ab28ceb4f2a0219024be1d03799d8f104c1 (diff) |
goldendict-ng: init at 23.07.23
-rw-r--r-- | pkgs/applications/misc/goldendict-ng/default.nix | 83 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 1 |
2 files changed, 84 insertions, 0 deletions
diff --git a/pkgs/applications/misc/goldendict-ng/default.nix b/pkgs/applications/misc/goldendict-ng/default.nix new file mode 100644 index 0000000000000..983b61b9317c6 --- /dev/null +++ b/pkgs/applications/misc/goldendict-ng/default.nix @@ -0,0 +1,83 @@ +{ stdenv +, lib +, fetchFromGitHub +, pkg-config +, cmake +, libvorbis +, ffmpeg +, libeb +, hunspell +, opencc +, xapian +, libzim +, lzo +, xz +, tomlplusplus +, fmt +, bzip2 +, libiconv +, libXtst +, qtbase +, qtsvg +, qtwebengine +, qttools +, qtwayland +, qt5compat +, qtmultimedia +, qtspeech +, wrapQtAppsHook +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "goldendict-ng"; + version = "23.07.23"; + + src = fetchFromGitHub { + owner = "xiaoyifang"; + repo = "goldendict-ng"; + rev = "v${finalAttrs.version}"; + hash = "sha256-ZKbrO5L4KFmr2NsGDihRWBeW0OXHoPRwZGj6kt1Anc8="; + }; + + nativeBuildInputs = [ pkg-config cmake wrapQtAppsHook ]; + buildInputs = [ + qtbase + qtsvg + qttools + qtwebengine + qt5compat + qtmultimedia + qtspeech + libvorbis + tomlplusplus + fmt + hunspell + xz + lzo + libXtst + bzip2 + libiconv + opencc + libeb + ffmpeg + xapian + libzim + ]; + + cmakeFlags = [ + "-DWITH_XAPIAN=ON" + "-DWITH_ZIM=ON" + "-DWITH_FFMPEG_PLAYER=ON" + "-DWITH_EPWING_SUPPORT=ON" + "-DUSE_SYSTEM_FMT=ON" + "-DUSE_SYSTEM_TOML=ON" + ]; + + meta = with lib; { + homepage = "https://xiaoyifang.github.io/goldendict-ng/"; + description = "Advanced multi-dictionary lookup program."; + platforms = platforms.linux; + maintainers = with maintainers; [ slbtty ]; + license = licenses.gpl3Plus; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 79c184430b187..3ca0c872d5ec2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -31305,6 +31305,7 @@ with pkgs; }; goldendict = libsForQt5.callPackage ../applications/misc/goldendict { }; + goldendict-ng = qt6Packages.callPackage ../applications/misc/goldendict-ng { }; gomuks = callPackage ../applications/networking/instant-messengers/gomuks { }; |