2010-05-27 23:44:17 +04:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, ghostscript, atk, gtk, glib, fontconfig, freetype
|
|
|
|
, libgnomecanvas, libgnomeprint, libgnomeprintui
|
2011-09-19 14:03:25 +04:00
|
|
|
, pango, libX11, xproto, zlib, poppler, poppler_data
|
2010-05-27 23:44:17 +04:00
|
|
|
, autoconf, automake, libtool, pkgconfig}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.4.5";
|
|
|
|
name = "xournal-" + version;
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/xournal/${name}.tar.gz";
|
|
|
|
sha256 = "1lamfzhby06w2pg56lpv1symdixcwmg6wvi7g6br6la4ak5w5mx7";
|
|
|
|
};
|
2009-08-03 01:47:10 +04:00
|
|
|
|
2010-05-27 23:44:17 +04:00
|
|
|
buildInputs = [
|
2009-08-03 01:47:10 +04:00
|
|
|
ghostscript atk gtk glib fontconfig freetype
|
|
|
|
libgnomecanvas libgnomeprint libgnomeprintui
|
2011-09-19 14:03:25 +04:00
|
|
|
pango libX11 xproto zlib poppler poppler_data
|
2009-08-03 01:47:10 +04:00
|
|
|
];
|
|
|
|
|
2012-12-28 22:20:09 +04:00
|
|
|
nativeBuildInputs = [ autoconf automake libtool pkgconfig ];
|
2011-12-15 12:01:03 +04:00
|
|
|
|
|
|
|
# Build with poppler-0.18.x
|
|
|
|
patchFlags = "-p0";
|
|
|
|
|
|
|
|
patches = [ (fetchurl {
|
|
|
|
url = "https://api.opensuse.org/public/source/X11:Utilities/xournal/xournal-poppler-0.18.patch?rev=eca1c0b24f5bc78111147ab8f4688455";
|
|
|
|
sha256 = "1q565kqb4bklncriq4dlhp1prhidv88wmxr9k3laykiia0qjmfyj";
|
|
|
|
})];
|
|
|
|
|
2010-05-27 23:44:17 +04:00
|
|
|
NIX_LDFLAGS="-lX11 -lz";
|
2011-12-15 12:01:03 +04:00
|
|
|
|
2009-08-03 01:47:10 +04:00
|
|
|
meta = {
|
2011-12-15 12:01:03 +04:00
|
|
|
homepage = http://xournal.sourceforge.net/;
|
2009-08-03 01:47:10 +04:00
|
|
|
description = "note-taking application (supposes stylus)";
|
2010-05-27 23:44:17 +04:00
|
|
|
maintainers = [ stdenv.lib.maintainers.guibert ];
|
2009-08-03 01:47:10 +04:00
|
|
|
};
|
|
|
|
}
|