Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 53 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 boost, 7 libusb1, 8 pkg-config, 9}: 10 11stdenv.mkDerivation { 12 pname = "cc-tool"; 13 version = "unstable-2020-05-19"; 14 15 src = fetchFromGitHub { 16 owner = "dashesy"; 17 repo = "cc-tool"; 18 rev = "19e707eafaaddee8b996ad27a9f3e1aafcb900d2"; 19 hash = "sha256:1f78j498fdd36xbci57jkgh25gq14g3b6xmp76imdpar0jkpyljv"; 20 }; 21 22 nativeBuildInputs = [ 23 autoreconfHook 24 pkg-config 25 ]; 26 buildInputs = [ 27 boost 28 libusb1 29 ]; 30 31 postPatch = '' 32 substituteInPlace udev/90-cc-debugger.rules \ 33 --replace 'MODE="0666"' 'MODE="0660", GROUP="plugdev", TAG+="uaccess"' 34 ''; 35 36 doInstallCheck = true; 37 38 postInstall = '' 39 install -D udev/90-cc-debugger.rules $out/lib/udev/rules.d/90-cc-debugger.rules 40 ''; 41 42 meta = with lib; { 43 description = "Command line tool for the Texas Instruments CC Debugger"; 44 mainProgram = "cc-tool"; 45 longDescription = '' 46 cc-tool provides support for Texas Instruments CC Debugger 47 ''; 48 homepage = "https://github.com/dashesy/cc-tool"; 49 license = licenses.gpl2; 50 platforms = with platforms; linux ++ darwin; 51 maintainers = [ maintainers.CRTified ]; 52 }; 53}