diff options
author | Jonas Hoersch <coroa@online.de> | 2013-09-29 02:42:50 +0200 |
---|---|---|
committer | Jonas Hoersch <coroa@online.de> | 2013-09-29 23:41:57 +0200 |
commit | b260d7111aa776e2c2e436d3443590c22c3d758f (patch) | |
tree | e38716313e6aea6b067ab5d39cc55b348597eb88 /pkgs/applications/misc/fbreader | |
parent | 69221b604603eed95f979fe0c332792a8978eed5 (diff) |
Add fbreader, an e-book reader for Linux
Diffstat (limited to 'pkgs/applications/misc/fbreader')
-rw-r--r-- | pkgs/applications/misc/fbreader/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/misc/fbreader/default.nix b/pkgs/applications/misc/fbreader/default.nix new file mode 100644 index 0000000000000..fa361308ff1a7 --- /dev/null +++ b/pkgs/applications/misc/fbreader/default.nix @@ -0,0 +1,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 ]; + }; +} |