diff options
Diffstat (limited to 'nixpkgs/pkgs/development/tools/misc/nrfutil/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/tools/misc/nrfutil/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/tools/misc/nrfutil/default.nix b/nixpkgs/pkgs/development/tools/misc/nrfutil/default.nix new file mode 100644 index 000000000000..acc8490b7c20 --- /dev/null +++ b/nixpkgs/pkgs/development/tools/misc/nrfutil/default.nix @@ -0,0 +1,30 @@ +{ lib, python3Packages, fetchFromGitHub }: + +with python3Packages; buildPythonApplication rec { + pname = "nrfutil"; + version = "6.1"; + + src = fetchFromGitHub { + owner = "NordicSemiconductor"; + repo = "pc-nrfutil"; + rev = "v${version}"; + sha256 = "0g43lf5jmk0qxb7r4h68wr38fli6pjjk67w8l2cpdm9rd8jz4lpn"; + }; + + propagatedBuildInputs = [ pc-ble-driver-py six pyserial enum34 click ecdsa + protobuf tqdm piccata pyspinel intelhex pyyaml crcmod libusb1 ipaddress ]; + + checkInputs = [ nose behave ]; + + postPatch = '' + mkdir test-reports + ''; + + meta = with lib; { + description = "Device Firmware Update tool for nRF chips"; + homepage = "https://github.com/NordicSemiconductor/pc-nrfutil"; + license = licenses.unfreeRedistributable; + platforms = platforms.unix; + maintainers = with maintainers; [ gebner ]; + }; +} |