Skip to content

Commit

Permalink
Merge pull request #92657 from CRTified/pkg/cc-tool
Browse files Browse the repository at this point in the history
cc-tool: Init at unstable-2020-05-19
  • Loading branch information
danieldk committed Jul 8, 2020
2 parents 4f1bb13 + cc1fadf commit d915b72
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
10 changes: 10 additions & 0 deletions maintainers/maintainer-list.nix
Expand Up @@ -1680,6 +1680,16 @@
githubId = 1222362;
name = "Matías Lang";
};
CRTified = {
email = "carl.schneider+nixos@rub.de";
github = "CRTified";
githubId = 2440581;
name = "Carl Richard Theodor Schneider";
keys = [{
longkeyid = "rsa4096/0x45BCC1E2709B1788";
fingerprint = "2017 E152 BB81 5C16 955C E612 45BC C1E2 709B 1788";
}];
};
cryptix = {
email = "cryptix@riseup.net";
github = "cryptix";
Expand Down
42 changes: 42 additions & 0 deletions pkgs/development/tools/misc/cc-tool/default.nix
@@ -0,0 +1,42 @@
{ 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 stdenv.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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -10253,6 +10253,8 @@ in

cbrowser = callPackage ../development/tools/misc/cbrowser { };

cc-tool = callPackage ../development/tools/misc/cc-tool { };

ccache = callPackage ../development/tools/misc/ccache { };

# Wrapper that works as gcc or g++
Expand Down

0 comments on commit d915b72

Please sign in to comment.