From f140dc3672e48286306a09f277cdce4b963cb722 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 26 Nov 2025 21:46:11 +0000 Subject: [PATCH] cc-tool: unstable-2020-05-19 -> 0.27-unstable-2025-10-17 Pass `--with-boost=` to fix the build on `master` https://hydra.nixos.org/build/314316048: checking for Boost headers version >= 1.39.0... no configure: error: cannot find Boost headers version >= 1.39.0 While at it added a trivial updater and enabled build parallelism. ZHF: #457852 --- pkgs/by-name/cc/cc-tool/package.nix | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/cc/cc-tool/package.nix b/pkgs/by-name/cc/cc-tool/package.nix index b9186467190c..95cdf5f64fcf 100644 --- a/pkgs/by-name/cc/cc-tool/package.nix +++ b/pkgs/by-name/cc/cc-tool/package.nix @@ -6,17 +6,18 @@ boost, libusb1, pkg-config, + unstableGitUpdater, }: stdenv.mkDerivation { pname = "cc-tool"; - version = "unstable-2020-05-19"; + version = "0.27-unstable-2025-10-17"; src = fetchFromGitHub { owner = "dashesy"; repo = "cc-tool"; - rev = "19e707eafaaddee8b996ad27a9f3e1aafcb900d2"; - hash = "sha256:1f78j498fdd36xbci57jkgh25gq14g3b6xmp76imdpar0jkpyljv"; + rev = "0d84df329e343e2ea5a960c04a3d4478ee039aa0"; + hash = "sha256-3zZNzH+T/Wc3rn+ZmdpQ5U0Fs6ylT/QhX1pUUD8kPoE="; }; nativeBuildInputs = [ @@ -30,15 +31,25 @@ stdenv.mkDerivation { postPatch = '' substituteInPlace udev/90-cc-debugger.rules \ - --replace 'MODE="0666"' 'MODE="0660", GROUP="plugdev", TAG+="uaccess"' + --replace-fail 'MODE="0666"' 'MODE="0660", GROUP="plugdev", TAG+="uaccess"' ''; + configureFlags = [ + "--with-boost=${lib.getDev boost}" + ]; + + enableParallelBuilding = true; + doInstallCheck = true; postInstall = '' install -D udev/90-cc-debugger.rules $out/lib/udev/rules.d/90-cc-debugger.rules ''; + passthru.updateScript = unstableGitUpdater { + tagPrefix = "v"; + }; + meta = { description = "Command line tool for the Texas Instruments CC Debugger"; mainProgram = "cc-tool";