13 , gobject-introspection
17 stdenv.mkDerivation rec {
21 outputs = [ "out" "dev" "devdoc" ];
24 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
25 sha256 = "kmalwQ7OOD4ZPft/+we1CcwfUVIauNrXavlu0UISwuM=";
29 # Pick up MR 30 (https://gitlab.gnome.org/GNOME/librest/-/merge_requests/30) to fix GOA crashes with libsoup 3
31 url = "https://gitlab.gnome.org/GNOME/librest/-/commit/fbad64abe28a96f591a30e3a5d3189c10172a414.patch";
32 hash = "sha256-r8+h84Y/AdM1IOMRcBVwDvfqapqOY8ZtRXdOIQvFR9w=";
35 url = "https://gitlab.gnome.org/GNOME/librest/-/commit/8049048a0f7d52b3f4101c7123797fed099d4cc8.patch";
36 hash = "sha256-AMhHKzzOoTIlkRwN4KfUwdhxlqvtRgiVjKRfnG7KZwc=";
41 depsBuildBuild = [ pkg-config ];
50 propagatedBuildInputs = [
60 # Remove when https://gitlab.gnome.org/GNOME/librest/merge_requests/2 is merged.
61 "-Dca_certificates=true"
62 "-Dca_certificates_path=/etc/ssl/certs/ca-certificates.crt"
66 # https://gitlab.gnome.org/GNOME/librest/-/merge_requests/19
67 substituteInPlace meson.build \
68 --replace "con." "conf."
70 # Run-time dependency gi-docgen found: NO (tried pkgconfig and cmake)
71 # it should be a build-time dep for build
73 substituteInPlace docs/meson.build \
74 --replace "'gi-docgen', ver" "'gi-docgen', native:true, ver"
78 # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
79 moveToOutput "share/doc" "$devdoc"
82 separateDebugInfo = true;
85 updateScript = gnome.updateScript {
87 attrPath = "librest_1_0";
88 versionPolicy = "odd-unstable";
93 description = "Helper library for RESTful services";
94 homepage = "https://gitlab.gnome.org/GNOME/librest";
95 license = licenses.lgpl21Only;
96 platforms = platforms.unix;
97 maintainers = teams.gnome.members;