about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/nrfutil
diff options
context:
space:
mode:
authorGabriel Ebner <gebner@gebner.org>2019-05-19 12:12:32 +0200
committerGabriel Ebner <gebner@gebner.org>2019-05-19 12:12:32 +0200
commit131d9e53a2e49b02f4996edde25936b6d8cc270a (patch)
treef0471f96279c1532bf7b0b838860853f69adeeb9 /pkgs/development/tools/misc/nrfutil
parentef22dd015dd537717f1f28e793fc98a19009329c (diff)
downloadnixlib-131d9e53a2e49b02f4996edde25936b6d8cc270a.tar
nixlib-131d9e53a2e49b02f4996edde25936b6d8cc270a.tar.gz
nixlib-131d9e53a2e49b02f4996edde25936b6d8cc270a.tar.bz2
nixlib-131d9e53a2e49b02f4996edde25936b6d8cc270a.tar.lz
nixlib-131d9e53a2e49b02f4996edde25936b6d8cc270a.tar.xz
nixlib-131d9e53a2e49b02f4996edde25936b6d8cc270a.tar.zst
nixlib-131d9e53a2e49b02f4996edde25936b6d8cc270a.zip
nrfutil: init at 5.2.0
Diffstat (limited to 'pkgs/development/tools/misc/nrfutil')
-rw-r--r--pkgs/development/tools/misc/nrfutil/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/nrfutil/default.nix b/pkgs/development/tools/misc/nrfutil/default.nix
new file mode 100644
index 000000000000..0a6155e649e5
--- /dev/null
+++ b/pkgs/development/tools/misc/nrfutil/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, python2Packages, fetchFromGitHub }:
+
+with python2Packages; buildPythonApplication rec {
+  pname = "nrfutil";
+  version = "5.2.0";
+
+  src = fetchFromGitHub {
+    owner = "NordicSemiconductor";
+    repo = "pc-nrfutil";
+    rev = "v${version}";
+    sha256 = "1hajjgz8r4fjbwqr22p5dvb6k83dpxf8k7mhx20gkbrrx9ivqh79";
+  };
+
+  propagatedBuildInputs = [ pc-ble-driver-py six pyserial enum34 click ecdsa
+    protobuf tqdm piccata pyspinel intelhex pyyaml crcmod libusb1 ipaddress ];
+
+  checkInputs = [ nose behave ];
+
+  postPatch = ''
+    # remove version bound on pyyaml
+    sed -i /pyyaml/d requirements.txt
+
+    mkdir test-reports
+  '';
+
+  meta = with stdenv.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 ];
+  };
+}