Files
nixpkgs/pkgs/by-name/cc/cc-tool/package.nix
Sergei Trofimovich f140dc3672 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
2025-12-29 17:27:29 -05:00

65 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
boost,
libusb1,
pkg-config,
unstableGitUpdater,
}:
stdenv.mkDerivation {
pname = "cc-tool";
version = "0.27-unstable-2025-10-17";
src = fetchFromGitHub {
owner = "dashesy";
repo = "cc-tool";
rev = "0d84df329e343e2ea5a960c04a3d4478ee039aa0";
hash = "sha256-3zZNzH+T/Wc3rn+ZmdpQ5U0Fs6ylT/QhX1pUUD8kPoE=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
boost
libusb1
];
postPatch = ''
substituteInPlace udev/90-cc-debugger.rules \
--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";
longDescription = ''
cc-tool provides support for Texas Instruments CC Debugger
'';
homepage = "https://github.com/dashesy/cc-tool";
license = lib.licenses.gpl2;
platforms = with lib.platforms; linux ++ darwin;
maintainers = [ lib.maintainers.CRTified ];
};
}