From e58534ffcb4287022ec747bc23eb7d1e9212524d Mon Sep 17 00:00:00 2001 From: moni-dz Date: Sat, 17 Jan 2026 09:34:26 +0800 Subject: [PATCH] libunicode: 0.6.0 -> 0.7.0 changelog: https://github.com/contour-terminal/libunicode/releases/tag/v0.7.0 --- pkgs/by-name/li/libunicode/package.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/li/libunicode/package.nix b/pkgs/by-name/li/libunicode/package.nix index 5ca5a5f77382..c1cfd06efdf6 100644 --- a/pkgs/by-name/li/libunicode/package.nix +++ b/pkgs/by-name/li/libunicode/package.nix @@ -7,26 +7,27 @@ catch2_3, fmt, python3, + simdImplementation ? "none", # see https://github.com/contour-terminal/libunicode/blob/v0.7.0/CMakeLists.txt#L53 for options }: let - ucd-version = "16.0.0"; + ucd-version = "17.0.0"; ucd-src = fetchzip { url = "https://www.unicode.org/Public/${ucd-version}/ucd/UCD.zip"; - hash = "sha256-GgEYjOLrxxfTAQsc2bpi7ShoAr3up8z7GXXpe+txFuw"; + hash = "sha256-k2OFy8xPvn+Bboyr1EsmZNeVDOglvk2kSZ+H17YaX60="; stripRoot = false; }; in stdenv.mkDerivation (final: { pname = "libunicode"; - version = "0.6.0"; + version = "0.7.0"; src = fetchFromGitHub { owner = "contour-terminal"; repo = "libunicode"; - rev = "v${final.version}"; - hash = "sha256-zX33aTQ7Wgl8MABu+o6nA2HWrfXD4zQ9b3NDB+T2saI"; + tag = "v${final.version}"; + hash = "sha256-J8qawT1oiUO9xTVEMQvsY0K2NtIfkUq9PoCbFt6wqek="; }; # Fix: set_target_properties Can not find target to add properties to: Catch2, et al. @@ -41,7 +42,10 @@ stdenv.mkDerivation (final: { fmt ]; - cmakeFlags = [ "-DLIBUNICODE_UCD_DIR=${ucd-src}" ]; + cmakeFlags = [ + (lib.cmakeFeature "LIBUNICODE_SIMD_IMPLEMENTATION" simdImplementation) + (lib.cmakeFeature "LIBUNICODE_UCD_DIR" "${ucd-src}") + ]; meta = { description = "Modern C++20 Unicode library";