Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92657 from CRTified/pkg/cc-tool
cc-tool: Init at unstable-2020-05-19
- Loading branch information
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters