Files
nixpkgs/pkgs/by-name/cc/cc-tool/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

54 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
boost,
libusb1,
pkg-config,
}:
stdenv.mkDerivation {
pname = "cc-tool";
version = "unstable-2020-05-19";
src = fetchFromGitHub {
owner = "dashesy";
repo = "cc-tool";
rev = "19e707eafaaddee8b996ad27a9f3e1aafcb900d2";
hash = "sha256:1f78j498fdd36xbci57jkgh25gq14g3b6xmp76imdpar0jkpyljv";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
boost
libusb1
];
postPatch = ''
substituteInPlace udev/90-cc-debugger.rules \
--replace 'MODE="0666"' 'MODE="0660", GROUP="plugdev", TAG+="uaccess"'
'';
doInstallCheck = true;
postInstall = ''
install -D udev/90-cc-debugger.rules $out/lib/udev/rules.d/90-cc-debugger.rules
'';
meta = with lib; {
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 = licenses.gpl2;
platforms = with platforms; linux ++ darwin;
maintainers = [ maintainers.CRTified ];
};
}