fbreader: fixup build with gcc-6

This commit is contained in:
Vladimír Čunát 2017-08-26 10:35:05 +02:00
parent 4596835502
commit 6895ef672b
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -16,11 +16,13 @@ stdenv.mkDerivation {
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"
'';