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
This commit is contained in:
Sergei Trofimovich
2025-11-26 21:46:11 +00:00
committed by Michael Daniels
parent 7443535c83
commit f140dc3672
+15 -4
View File
@@ -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";