
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{ 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";
|
|
mainProgram = "cc-tool";
|
|
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 ];
|
|
};
|
|
}
|