From f21fec3871a704863b2e32afc818cf35337fd7ff Mon Sep 17 00:00:00 2001 From: whispers Date: Wed, 27 May 2026 09:20:26 -0400 Subject: [PATCH] tinysparql: include upstream patch for sqlite float-related test fixes Issue: https://gitlab.gnome.org/GNOME/tinysparql/-/work_items/496 Merge request: https://gitlab.gnome.org/GNOME/tinysparql/-/merge_requests/811 --- pkgs/by-name/ti/tinysparql/package.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/by-name/ti/tinysparql/package.nix b/pkgs/by-name/ti/tinysparql/package.nix index 25e5d9aaa0f0..aeeae95159df 100644 --- a/pkgs/by-name/ti/tinysparql/package.nix +++ b/pkgs/by-name/ti/tinysparql/package.nix @@ -2,6 +2,7 @@ stdenv, lib, fetchurl, + fetchpatch, gettext, meson, mesonEmulatorHook, @@ -49,6 +50,18 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-z9RgIe4VFK1DXnFPeqHsenh8f1FqlPTHQ4iX7j1uyh4="; }; + patches = [ + # sqlite changed the precision of float <-> text conversions, causing + # failures in the test suite. patch here until this appears in a release. + # https://gitlab.gnome.org/GNOME/tinysparql/-/work_items/496 + # https://gitlab.gnome.org/GNOME/tinysparql/-/merge_requests/811 + (fetchpatch { + name = "tinysparql-sqlite-double-value-precision.patch"; + url = "https://gitlab.gnome.org/GNOME/tinysparql/-/commit/47d5bf9313d0ccb1feb7169eed9047d0e1597a39.patch"; + hash = "sha256-k6eELZCEEtD8s7GiMckjTlf6QcAiUNY1Mraw7GROsm4="; + }) + ]; + strictDeps = true; depsBuildBuild = [