librest: drop unused 0.8 release, rename from librest_1_0 (#525816)

This commit is contained in:
Jan Tojnar
2026-05-30 16:42:01 +00:00
committed by GitHub
9 changed files with 14 additions and 93 deletions

View File

@@ -17,6 +17,8 @@
- `requireFile` now sets `meta.license = lib.licenses.unfree` by default. Users of `requireFile`-based derivations that preserve this default will need to explicitly allow their evaluation as described in [](#sec-allow-unfree).
- `librest` providing 0.7 ABI was removed. `librest_1_0` providing 1.0 ABI was renamed to `librest` and `librest_1_0` was kept as an alias.
## Other Notable Changes {#sec-nixpkgs-release-26.11-notable-changes}
<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->

View File

@@ -12,7 +12,7 @@
gtk4,
gobject-introspection,
gdk-pixbuf,
librest_1_0,
librest,
libgweather,
geoclue2,
wrapGAppsHook4,
@@ -66,7 +66,7 @@ stdenv.mkDerivation (finalAttrs: {
libshumate
libgweather
libadwaita
librest_1_0
librest
libsecret
libsoup_3
];

View File

@@ -13,7 +13,7 @@
json-glib,
keyutils,
libadwaita,
librest_1_0,
librest,
libxml2,
libsecret,
gobject-introspection,
@@ -79,7 +79,7 @@ stdenv.mkDerivation (finalAttrs: {
gvfs # OwnCloud, Google Drive
json-glib
libkrb5
librest_1_0
librest
libxml2
libsecret
libsoup_3

View File

@@ -14,7 +14,7 @@
libarchive,
libdmapsharing,
libsoup_3,
librest_1_0,
librest,
gnome,
libxml2,
lua5_4,
@@ -90,7 +90,7 @@ stdenv.mkDerivation rec {
libarchive
libdmapsharing
libsoup_3
librest_1_0
librest
gmime
gom
json-glib

View File

@@ -8,7 +8,7 @@
gobject-introspection,
ninja,
glib,
librest_1_0,
librest,
}:
stdenv.mkDerivation rec {
@@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [
glib
librest_1_0
librest
];
passthru = {

View File

@@ -14,7 +14,7 @@
gnome,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "librest";
version = "0.10.2";
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
];
src = fetchurl {
url = "mirror://gnome/sources/librest/${lib.versions.majorMinor version}/librest-${version}.tar.xz";
url = "mirror://gnome/sources/librest/${lib.versions.majorMinor finalAttrs.version}/librest-${finalAttrs.version}.tar.xz";
sha256 = "e2y5Ers6Is+n3PAFkl3LYogwJNsMCQmUhufWhRGFybg=";
};
@@ -64,7 +64,6 @@ stdenv.mkDerivation rec {
passthru = {
updateScript = gnome.updateScript {
packageName = "librest";
attrPath = "librest_1_0";
versionPolicy = "odd-unstable";
};
};
@@ -76,4 +75,4 @@ stdenv.mkDerivation rec {
platforms = lib.platforms.unix;
teams = [ lib.teams.gnome ];
};
}
})

View File

@@ -1,77 +0,0 @@
{
lib,
stdenv,
fetchurl,
pkg-config,
glib,
libsoup_2_4,
libxml2,
gobject-introspection,
gtk-doc,
docbook-xsl-nons,
docbook_xml_dtd_412,
gnome,
}:
stdenv.mkDerivation rec {
pname = "rest";
version = "0.8.1";
outputs = [
"out"
"dev"
"devdoc"
];
src = fetchurl {
url = "mirror://gnome/sources/rest/${lib.versions.majorMinor version}/rest-${version}.tar.xz";
sha256 = "0513aad38e5d3cedd4ae3c551634e3be1b9baaa79775e53b2dba9456f15b01c9";
};
nativeBuildInputs = [
pkg-config
gobject-introspection
]
++ lib.optionals (stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
gtk-doc
docbook-xsl-nons
docbook_xml_dtd_412
];
propagatedBuildInputs = [
glib
libsoup_2_4
libxml2
];
strictDeps = true;
configureFlags = [
(lib.enableFeature (stdenv.buildPlatform.canExecute stdenv.hostPlatform) "gtk-doc")
# Remove when https://gitlab.gnome.org/GNOME/librest/merge_requests/2 is merged.
"--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt"
];
postPatch = ''
# pkg-config doesn't look in $PATH if strictDeps is on
substituteInPlace ./configure \
--replace-fail 'have_gtk_doc=no' "echo gtk-doc is present"
'';
passthru = {
updateScript = gnome.updateScript {
packageName = "rest";
attrPath = "librest";
versionPolicy = "odd-unstable";
freeze = true;
};
};
meta = {
description = "Helper library for RESTful services";
homepage = "https://gitlab.gnome.org/GNOME/librest";
license = lib.licenses.lgpl21Only;
platforms = lib.platforms.unix;
teams = [ lib.teams.gnome ];
};
}

View File

@@ -1162,6 +1162,7 @@ mapAliases {
libreoffice-qt6-still = libreoffice-qt-still; # Added 2025-08-30
libreoffice-qt6-still-unwrapped = libreoffice-qt-still.unwrapped; # Added 2025-08-30
libreoffice-qt6-unwrapped = libreoffice-qt.unwrapped; # Added 2025-08-30
librest_1_0 = warnAlias "'librest_1_0' has been renamed to/replaced by 'librest'" librest; # Added 2026-05-30
librewolf-wayland = throw "'librewolf-wayland' has been renamed to/replaced by 'librewolf'"; # Converted to throw 2025-10-27
librtlsdr = throw "'librtlsdr' has been renamed to/replaced by 'rtl-sdr'"; # Converted to throw 2025-10-27
libsForQt515 = throw "'libsForQt515' has been renamed to/replaced by 'libsForQt5'"; # Converted to throw 2025-10-27

View File

@@ -2726,10 +2726,6 @@ with pkgs;
libportal-qt5 = libportal.override { variant = "qt5"; };
libportal-qt6 = libportal.override { variant = "qt6"; };
librest = callPackage ../development/libraries/librest { };
librest_1_0 = callPackage ../development/libraries/librest/1.0.nix { };
licensee = callPackage ../tools/package-management/licensee { };
linux-gpib = callPackage ../applications/science/electronics/linux-gpib/user.nix { };