14 gobject-introspection,
18 stdenv.mkDerivation rec {
29 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
30 sha256 = "kmalwQ7OOD4ZPft/+we1CcwfUVIauNrXavlu0UISwuM=";
34 # Pick up MR 30 (https://gitlab.gnome.org/GNOME/librest/-/merge_requests/30) to fix GOA crashes with libsoup 3
36 url = "https://gitlab.gnome.org/GNOME/librest/-/commit/fbad64abe28a96f591a30e3a5d3189c10172a414.patch";
37 hash = "sha256-r8+h84Y/AdM1IOMRcBVwDvfqapqOY8ZtRXdOIQvFR9w=";
40 url = "https://gitlab.gnome.org/GNOME/librest/-/commit/8049048a0f7d52b3f4101c7123797fed099d4cc8.patch";
41 hash = "sha256-AMhHKzzOoTIlkRwN4KfUwdhxlqvtRgiVjKRfnG7KZwc=";
46 depsBuildBuild = [ pkg-config ];
55 propagatedBuildInputs = [
65 # Remove when https://gitlab.gnome.org/GNOME/librest/merge_requests/2 is merged.
66 "-Dca_certificates=true"
67 "-Dca_certificates_path=/etc/ssl/certs/ca-certificates.crt"
71 # https://gitlab.gnome.org/GNOME/librest/-/merge_requests/19
72 substituteInPlace meson.build \
73 --replace "con." "conf."
75 # Run-time dependency gi-docgen found: NO (tried pkgconfig and cmake)
76 # it should be a build-time dep for build
78 substituteInPlace docs/meson.build \
79 --replace "'gi-docgen', ver" "'gi-docgen', native:true, ver"
83 # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
84 moveToOutput "share/doc" "$devdoc"
87 separateDebugInfo = true;
90 updateScript = gnome.updateScript {
92 attrPath = "librest_1_0";
93 versionPolicy = "odd-unstable";
98 description = "Helper library for RESTful services";
99 homepage = "https://gitlab.gnome.org/GNOME/librest";
100 license = licenses.lgpl21Only;
101 platforms = platforms.unix;
102 maintainers = teams.gnome.members;