summary refs log tree commit diff
path: root/pkgs/applications/misc/goldendict/default.nix
blob: e917cc024d5bc1b8c8badc6424eb54c410c6745b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ mkDerivation, lib, fetchFromGitHub, pkgconfig, libXtst, libvorbis, hunspell
, libao, ffmpeg, libeb, lzo, xz, libtiff, opencc
, qtbase, qtsvg, qtwebkit, qtx11extras, qttools, qmake }:
mkDerivation {

  name = "goldendict-2019-08-01";
  src = fetchFromGitHub {
    owner = "goldendict";
    repo = "goldendict";
    rev = "0f951b06a55f3a201891cf645a556e773bda5f52";
    sha256 = "1d1hn95vhvsmbq9q96l5adn90g0hg25dl01knb4y4v6v9x4yrl2x";
  };

  nativeBuildInputs = [ pkgconfig qmake ];
  buildInputs = [
    qtbase qtsvg qtwebkit qtx11extras qttools
    libXtst libvorbis hunspell libao ffmpeg libeb lzo xz libtiff opencc
  ];

  qmakeFlags = [
    "goldendict.pro"
    "CONFIG+=zim_support"
    "CONFIG+=chinese_conversion_support"
  ];

  meta = with lib; {
    homepage = http://goldendict.org/;
    description = "A feature-rich dictionary lookup program";
    platforms = platforms.linux;
    maintainers = with maintainers; [ gebner astsmtl ];
    license = licenses.gpl3Plus;
  };
}