57bccb3cb8
* treewide: http -> https sources This updates the source urls of all top-level packages from http to https where possible. * buildtorrent: fix url and tab -> spaces
38 lines
1 KiB
Nix
38 lines
1 KiB
Nix
{ stdenv, fetchurl, pkgconfig, bzip2, curl, expat, fribidi
|
|
, libunibreak, qt4, sqlite, zlib }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "fbreader-0.99.4";
|
|
|
|
src = fetchurl {
|
|
url = https://fbreader.org/files/desktop/fbreader-sources-0.99.4.tgz;
|
|
sha256 = "1sdq3vvwkq4bkyrvh0p884d66gaddz8hlab3m798ji9ixbak2z1x";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [
|
|
bzip2 curl expat fribidi libunibreak
|
|
qt4 sqlite zlib
|
|
];
|
|
|
|
makeFlags = "INSTALLDIR=$(out)";
|
|
|
|
NIX_CFLAGS_COMPILE = [ "-Wno-error=narrowing" ]; # since gcc-6
|
|
|
|
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 = with stdenv.lib; {
|
|
description = "An e-book reader for Linux";
|
|
homepage = http://www.fbreader.org/;
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux; # possibly also on unix general
|
|
maintainers = [ maintainers.coroa ];
|
|
};
|
|
}
|