blob: e2a511a0e32802c66f7f0d7be06ff1a91fe339ba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{ lib, stdenv
, fetchFromGitHub
, autoreconfHook
, boost
, libusb1
, pkg-config
}:
stdenv.mkDerivation rec {
pname = "cc-tool";
version = "unstable-2020-05-19";
src = fetchFromGitHub {
owner = "dashesy";
repo = pname;
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"'
'';
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";
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 ];
};
}
|