From 06ac8070031652d8ca130fcdb6145be83639f420 Mon Sep 17 00:00:00 2001 From: happysalada Date: Mon, 24 Aug 2026 05:49:34 -0400 Subject: [PATCH] icm: 0.10.53 -> 0.10.61 --- pkgs/by-name/ic/icm/package.nix | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/ic/icm/package.nix b/pkgs/by-name/ic/icm/package.nix index 8518a92258e8..7779232862f0 100644 --- a/pkgs/by-name/ic/icm/package.nix +++ b/pkgs/by-name/ic/icm/package.nix @@ -1,8 +1,9 @@ { lib, - stdenv, rustPlatform, fetchFromGitHub, + git, + makeBinaryWrapper, pkg-config, openssl, nix-update-script, @@ -12,19 +13,20 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "icm"; - version = "0.10.53"; + version = "0.10.61"; __structuredAttrs = true; src = fetchFromGitHub { owner = "rtk-ai"; repo = "icm"; tag = "icm-v${finalAttrs.version}"; - hash = "sha256-fx7RPt32Vuy0j+Ab9VtqXoJ/+Ql5h4ORNPYwARlll0U="; + hash = "sha256-dIZxq29umqRt81g0Y7RY90oAgf+ockrKfwPvFd8k8tU="; }; - cargoHash = "sha256-5xlgEjQWPQEtLDzP403lFIEa2dvdsX6HujWMmCiFnD8="; + cargoHash = "sha256-1YZ1GYnRxxbXXIG7d0+Nd8z2MhL8JQuuLexWNCmA+Ic="; nativeBuildInputs = [ + makeBinaryWrapper pkg-config ]; @@ -36,11 +38,18 @@ rustPlatform.buildRustPackage (finalAttrs: { # Build the HTTP dashboard buildFeatures = [ "web" ]; + # The project-detection tests shell out to `git` (init, worktree add, ...) + nativeCheckInputs = [ + git + ]; + + postInstall = '' + wrapProgram $out/bin/icm \ + --suffix PATH : ${lib.makeBinPath [ git ]} + ''; env = { # Use system OpenSSL instead of vendoring it OPENSSL_NO_VENDOR = "1"; - # Point ort (ONNX Runtime bindings) at the system library - ORT_STRATEGY = "system"; ORT_LIB_LOCATION = "${lib.getLib onnxruntime}/lib"; }; @@ -59,10 +68,11 @@ rustPlatform.buildRustPackage (finalAttrs: { meta = { description = "Permanent memory system for AI agents with MCP integration"; homepage = "https://github.com/rtk-ai/icm"; + changelog = "https://github.com/rtk-ai/icm/releases/tag/icm-v${finalAttrs.version}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ jpds ]; mainProgram = "icm"; platforms = lib.platforms.unix; - broken = stdenv.hostPlatform.isDarwin; + badPlatforms = lib.platforms.darwin; }; })