1{ fetchurl, stdenv, pkgconfig, intltool, gettext, glib, libxml2, zlib, bzip2
2, python, perl, gdk_pixbuf, libiconv, libintlOrEmpty }:
3
4let inherit (stdenv.lib) optionals; in
5
6stdenv.mkDerivation rec {
7 name = "libgsf-1.14.41";
8
9 src = fetchurl {
10 url = "mirror://gnome/sources/libgsf/1.14/${name}.tar.xz";
11 sha256 = "1lq87wnrsjbjafpk3c8xwd56gqx319fhck9xkg2da88hd9c9h2qm";
12 };
13
14 nativeBuildInputs = [ pkgconfig intltool ];
15
16 buildInputs = [ gettext bzip2 zlib python ]
17 ++ stdenv.lib.optional doCheck perl;
18
19 propagatedBuildInputs = [ libxml2 glib gdk_pixbuf libiconv ]
20 ++ libintlOrEmpty;
21
22 outputs = [ "out" "dev" ];
23
24 doCheck = true;
25 preCheck = "patchShebangs ./tests/";
26
27 NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
28
29 meta = with stdenv.lib; {
30 description = "GNOME's Structured File Library";
31 homepage = https://www.gnome.org/projects/libgsf;
32 license = licenses.lgpl2Plus;
33 maintainers = with maintainers; [ lovek323 ];
34 platforms = stdenv.lib.platforms.unix;
35
36 longDescription = ''
37 Libgsf aims to provide an efficient extensible I/O abstraction for
38 dealing with different structured file formats.
39 '';
40 };
41}