about summary refs log tree commit diff
path: root/pkgs/applications/misc/evopedia/default.nix
blob: 69767c11d6aab7934bfb06885b05f63019e218fd (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
{ stdenv, fetchFromGitHub, bzip2, qt4, qmake4Hook, libX11 }:

stdenv.mkDerivation rec {
  name = "evopedia-${version}";
  version = "0.4.4";

  src = fetchFromGitHub {
    owner = "evopedia";
    repo = "evopedia_qt";
    rev = "v${version}";
    sha256 = "0snp5qiywj306kfaywvkl7j34fivgxcb8dids1lzmbqq5xcpqqvc";
  };

  buildInputs = [ bzip2 qt4 libX11 ];
  nativeBuildInputs = [ qmake4Hook ];

  postInstall = ''
    # Patch the `evopedia.desktop' file.
    substituteInPlace $out/share/applications/evopedia.desktop \
        --replace '/usr/bin/evopedia' $out/bin/evopedia
  '';

  meta = with stdenv.lib; {
    description = "Offline Wikipedia Viewer";
    homepage = http://www.evopedia.info;
    license = licenses.gpl3Plus;
    maintainers = [ maintainers.qknight ];
    platforms = platforms.linux;
  };
}