20 stdenv.mkDerivation rec {
24 outputs = [ "out" "dev" ];
26 src = fetchFromGitLab {
27 domain = "gitlab.gnome.org";
30 rev = "LIBGSF_${lib.replaceStrings ["."] ["_"] version}";
31 hash = "sha256-6RP2DJWcDQ8dkKtcPxAkRsS7jSvvLoDNZHXiDJwR8Eg=";
35 # Fix cross-compilation
36 substituteInPlace configure.ac \
37 --replace "AC_PATH_PROG(PKG_CONFIG, pkg-config, no)" \
61 propagatedBuildInputs = [
71 patchShebangs ./tests/
74 # checking pkg-config is at least version 0.9.0... ./configure: line 15213: no: command not found
75 # configure: error: in `/build/libgsf-1.14.50':
76 # configure: error: The pkg-config script could not be found or is too old. Make sure it
77 # is in your PATH or set the PKG_CONFIG environment variable to the full
79 export PKG_CONFIG="$(command -v "$PKG_CONFIG")"
83 updateScript = gnome.updateScript {
85 versionPolicy = "odd-unstable";
90 description = "GNOME's Structured File Library";
91 homepage = "https://www.gnome.org/projects/libgsf";
92 license = licenses.lgpl2Plus;
93 maintainers = with maintainers; [ lovek323 ];
94 platforms = lib.platforms.unix;
97 Libgsf aims to provide an efficient extensible I/O abstraction for
98 dealing with different structured file formats.