nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 64 lines 1.4 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 boost, 7 libusb1, 8 pkg-config, 9 unstableGitUpdater, 10}: 11 12stdenv.mkDerivation { 13 pname = "cc-tool"; 14 version = "0.27-unstable-2025-10-17"; 15 16 src = fetchFromGitHub { 17 owner = "dashesy"; 18 repo = "cc-tool"; 19 rev = "0d84df329e343e2ea5a960c04a3d4478ee039aa0"; 20 hash = "sha256-3zZNzH+T/Wc3rn+ZmdpQ5U0Fs6ylT/QhX1pUUD8kPoE="; 21 }; 22 23 nativeBuildInputs = [ 24 autoreconfHook 25 pkg-config 26 ]; 27 buildInputs = [ 28 boost 29 libusb1 30 ]; 31 32 postPatch = '' 33 substituteInPlace udev/90-cc-debugger.rules \ 34 --replace-fail 'MODE="0666"' 'MODE="0660", GROUP="plugdev", TAG+="uaccess"' 35 ''; 36 37 configureFlags = [ 38 "--with-boost=${lib.getDev boost}" 39 ]; 40 41 enableParallelBuilding = true; 42 43 doInstallCheck = true; 44 45 postInstall = '' 46 install -D udev/90-cc-debugger.rules $out/lib/udev/rules.d/90-cc-debugger.rules 47 ''; 48 49 passthru.updateScript = unstableGitUpdater { 50 tagPrefix = "v"; 51 }; 52 53 meta = { 54 description = "Command line tool for the Texas Instruments CC Debugger"; 55 mainProgram = "cc-tool"; 56 longDescription = '' 57 cc-tool provides support for Texas Instruments CC Debugger 58 ''; 59 homepage = "https://github.com/dashesy/cc-tool"; 60 license = lib.licenses.gpl2; 61 platforms = with lib.platforms; linux ++ darwin; 62 maintainers = [ lib.maintainers.CRTified ]; 63 }; 64}