2013-09-29 01:42:50 +01:00
|
|
|
{ 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";
|
|
|
|
};
|
|
|
|
|
2017-09-14 20:24:37 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2013-09-29 01:42:50 +01:00
|
|
|
buildInputs = [
|
2017-09-14 20:24:37 +01:00
|
|
|
bzip2 curl expat fribidi libunibreak
|
2013-09-29 01:42:50 +01:00
|
|
|
qt4 sqlite zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = "INSTALLDIR=$(out)";
|
|
|
|
|
2017-08-26 09:35:05 +01:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-Wno-error=narrowing" ]; # since gcc-6
|
|
|
|
|
2013-09-29 01:42:50 +01:00
|
|
|
patchPhase = ''
|
|
|
|
# don't try to use ccache
|
|
|
|
substituteInPlace makefiles/arch/desktop.mk \
|
|
|
|
--replace "CCACHE = " "# CCACHE = "
|
2017-08-26 09:35:05 +01:00
|
|
|
|
2013-09-29 01:42:50 +01:00
|
|
|
substituteInPlace fbreader/desktop/Makefile \
|
|
|
|
--replace "/usr/share" "$out/share"
|
|
|
|
'';
|
|
|
|
|
2013-11-09 16:47:43 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-09-29 01:42:50 +01:00
|
|
|
description = "An e-book reader for Linux";
|
|
|
|
homepage = http://www.fbreader.org/;
|
2013-11-09 16:47:43 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux; # possibly also on unix general
|
2014-04-23 13:26:16 +01:00
|
|
|
maintainers = [ maintainers.coroa ];
|
2013-09-29 01:42:50 +01:00
|
|
|
};
|
|
|
|
}
|