21 stdenv.mkDerivation rec {
30 src = fetchFromGitLab {
31 domain = "gitlab.gnome.org";
34 rev = "LIBGSF_${lib.replaceStrings [ "." ] [ "_" ] version}";
35 hash = "sha256-vC/6QEoV6FvFxQ0YlMkBbTmAtqbkvgZf+9BU8epi8yo=";
39 # Fix cross-compilation
40 substituteInPlace configure.ac \
41 --replace "AC_PATH_PROG(PKG_CONFIG, pkg-config, no)" \
65 propagatedBuildInputs = [
75 patchShebangs ./tests/
78 # checking pkg-config is at least version 0.9.0... ./configure: line 15213: no: command not found
79 # configure: error: in `/build/libgsf-1.14.50':
80 # configure: error: The pkg-config script could not be found or is too old. Make sure it
81 # is in your PATH or set the PKG_CONFIG environment variable to the full
83 export PKG_CONFIG="$(command -v "$PKG_CONFIG")"
87 updateScript = gnome.updateScript {
89 versionPolicy = "odd-unstable";
94 description = "GNOME's Structured File Library";
95 homepage = "https://www.gnome.org/projects/libgsf";
96 license = licenses.lgpl21Only;
97 maintainers = with maintainers; [ lovek323 ];
98 platforms = lib.platforms.unix;
101 Libgsf aims to provide an efficient extensible I/O abstraction for
102 dealing with different structured file formats.