nixpkgs/pkgs/applications/misc/goldendict-ng/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

94 lines
1.6 KiB
Nix
Raw Normal View History

2023-08-02 17:25:18 +00:00
{ 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
, wrapGAppsHook
2023-08-02 17:25:18 +00:00
}:
stdenv.mkDerivation (finalAttrs: {
pname = "goldendict-ng";
version = "24.01.22";
2023-08-02 17:25:18 +00:00
src = fetchFromGitHub {
owner = "xiaoyifang";
repo = "goldendict-ng";
rev = "v${finalAttrs.version}-LoongYear.3dddb3be";
hash = "sha256-+OiZEkhNV06fZXPXv9zDzgJS5M3isHlcOXee3p/ejpw=";
2023-08-02 17:25:18 +00:00
};
nativeBuildInputs = [ pkg-config cmake wrapQtAppsHook wrapGAppsHook ];
2023-08-02 17:25:18 +00:00
buildInputs = [
qtbase
qtsvg
qttools
qtwebengine
qt5compat
qtmultimedia
qtspeech
qtwayland
2023-08-02 17:25:18 +00:00
libvorbis
tomlplusplus
fmt
hunspell
xz
lzo
libXtst
bzip2
libiconv
opencc
libeb
ffmpeg
xapian
libzim
];
# to prevent double wrapping of wrapQtApps and wrapGApps
dontWrapGApps = true;
preFixup = ''
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
2023-08-02 17:25:18 +00:00
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/";
2023-09-14 09:37:58 +00:00
description = "An advanced multi-dictionary lookup program";
2023-08-02 17:25:18 +00:00
platforms = platforms.linux;
2023-09-14 09:37:47 +00:00
mainProgram = "goldendict";
maintainers = with maintainers; [ slbtty michojel ];
2023-08-02 17:25:18 +00:00
license = licenses.gpl3Plus;
};
})