From e58534ffcb4287022ec747bc23eb7d1e9212524d Mon Sep 17 00:00:00 2001 From: moni-dz Date: Sat, 17 Jan 2026 09:34:26 +0800 Subject: [PATCH 1/2] 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"; From 7dc81fe633ae6f1e322c265430556a4276c098c8 Mon Sep 17 00:00:00 2001 From: moni-dz Date: Sat, 17 Jan 2026 09:35:18 +0800 Subject: [PATCH 2/2] contour: 0.6.1.7494 -> 0.6.2.8008 changelog: https://github.com/contour-terminal/contour/releases/tag/v0.6.2.8008 --- pkgs/by-name/co/contour/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/co/contour/package.nix b/pkgs/by-name/co/contour/package.nix index df7d41f4883b..7bcc9283814b 100644 --- a/pkgs/by-name/co/contour/package.nix +++ b/pkgs/by-name/co/contour/package.nix @@ -5,6 +5,7 @@ cmake, pkg-config, boxed-cpp, + cairo, freetype, fontconfig, libunicode, @@ -28,13 +29,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "contour"; - version = "0.6.1.7494"; + version = "0.6.2.8008"; src = fetchFromGitHub { owner = "contour-terminal"; repo = "contour"; tag = "v${finalAttrs.version}"; - hash = "sha256-jgasZhdcJ+UF3VIl8HLcxBayvbA/dkaOG8UtANRgeP4="; + hash = "sha256-xbJxV1q7+ddhnH0jDYzqVHwARCD0EyVh3POFRkl4d1Q="; }; patches = lib.optionals stdenv.hostPlatform.isDarwin [ @@ -59,6 +60,7 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ boxed-cpp + cairo fontconfig freetype libunicode @@ -79,8 +81,6 @@ stdenv.mkDerivation (finalAttrs: { darwin.libutil ]; - cmakeFlags = [ "-DCONTOUR_QT_VERSION=6" ]; - postInstall = '' mkdir -p $out/nix-support $terminfo/share ''