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