about summary refs log tree commit diff
path: root/pkgs/applications/misc/fbreader/default.nix
blob: fa361308ff1a71d1b91009f3ea3311784fade419 (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
34
{ stdenv, fetchurl, pkgconfig, bzip2, curl, expat, fribidi
, libunibreak, qt4, sqlite, zlib }:

stdenv.mkDerivation {
  name = "fbreader-0.99.4";

  src = fetchurl {
    url = http://fbreader.org/files/desktop/fbreader-sources-0.99.4.tgz;
    sha256 = "1sdq3vvwkq4bkyrvh0p884d66gaddz8hlab3m798ji9ixbak2z1x";
  };

  buildInputs = [
    pkgconfig bzip2 curl expat fribidi libunibreak
    qt4 sqlite zlib
  ];

  makeFlags = "INSTALLDIR=$(out)";

  patchPhase = ''
    # don't try to use ccache
    substituteInPlace makefiles/arch/desktop.mk \
      --replace "CCACHE = " "# CCACHE = "
  
    substituteInPlace fbreader/desktop/Makefile \
      --replace "/usr/share" "$out/share"
  '';

  meta = {
    description = "An e-book reader for Linux";
    homepage = http://www.fbreader.org/;
    license = "GPL";
    maintainer = [ stdenv.lib.maintainers.coroa ];
  }; 
}