mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
e0d0444717
Sadly the only device I had that was requiring this was an nRF52840 MDK USB dongle and I apparently broke its bootloader, so it won't get recognized anymore.
38 lines
750 B
Nix
38 lines
750 B
Nix
{ lib
|
|
, python3Packages
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "tockloader";
|
|
version = "1.6.0";
|
|
|
|
src = python3Packages.fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1aqkj1nplcw3gmklrhq6vxy6v9ad5mqiw4y1svasak2zkqdk1wyc";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
argcomplete
|
|
colorama
|
|
crcmod
|
|
pyserial
|
|
pytoml
|
|
tqdm
|
|
];
|
|
|
|
# has no test suite
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
$out/bin/tockloader --version | grep -q ${version}
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/tock/tockloader";
|
|
license = licenses.mit;
|
|
description = "Tool for programming Tock onto hardware boards";
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|
|
|