Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

80 lines
1.5 KiB
Nix

{
lib,
stdenv,
fetchurl,
meson,
ninja,
pkg-config,
gi-docgen,
glib,
json-glib,
libsoup_3,
libxml2,
gobject-introspection,
gnome,
}:
stdenv.mkDerivation rec {
pname = "librest";
version = "0.10.2";
outputs = [
"out"
"dev"
"devdoc"
];
src = fetchurl {
url = "mirror://gnome/sources/librest/${lib.versions.majorMinor version}/librest-${version}.tar.xz";
sha256 = "e2y5Ers6Is+n3PAFkl3LYogwJNsMCQmUhufWhRGFybg=";
};
strictDeps = true;
depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [
meson
ninja
pkg-config
gi-docgen
gobject-introspection
];
propagatedBuildInputs = [
glib
json-glib
libsoup_3
libxml2
];
mesonFlags = [
"-Dexamples=false"
# Remove when https://gitlab.gnome.org/GNOME/librest/merge_requests/2 is merged.
"-Dca_certificates=true"
"-Dca_certificates_path=/etc/ssl/certs/ca-certificates.crt"
];
postFixup = ''
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
moveToOutput "share/doc" "$devdoc"
'';
separateDebugInfo = true;
passthru = {
updateScript = gnome.updateScript {
packageName = "librest";
attrPath = "librest_1_0";
versionPolicy = "odd-unstable";
};
};
meta = with lib; {
description = "Helper library for RESTful services";
homepage = "https://gitlab.gnome.org/GNOME/librest";
license = licenses.lgpl21Only;
platforms = platforms.unix;
teams = [ teams.gnome ];
};
}