lol

Merge pull request #180075 from KenMacD/nrfutil-update

Update nrfutil and dependencies.

authored by

Robert Scott and committed by
GitHub
68716026 d053b868

+16 -30
+9 -1
pkgs/development/libraries/pc-ble-driver/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub 1 + { lib, stdenv, fetchpatch, fetchFromGitHub 2 2 , cmake, git 3 3 , asio, catch2, spdlog 4 4 , IOKit, udev ··· 14 14 rev = "v${version}"; 15 15 sha256 = "1609x17sbfi668jfwyvnfk9z29w6cgzvgv67xcpvpx5jv0czpcdj"; 16 16 }; 17 + 18 + patches = [ 19 + # Fix build with GCC 11 20 + (fetchpatch { 21 + url = "https://github.com/NordicSemiconductor/pc-ble-driver/commit/37258e65bdbcd0b4369ae448faf650dd181816ec.patch"; 22 + sha256 = "sha256-gOdzIW8YJQC+PE4FJd644I1+I7CMcBY8wpF6g02eI5g="; 23 + }) 24 + ]; 17 25 18 26 cmakeFlags = [ 19 27 "-DNRF_BLE_DRIVER_VERSION=${version}"
+3 -3
pkgs/development/python-modules/pc-ble-driver-py/default.nix
··· 16 16 17 17 buildPythonPackage rec { 18 18 pname = "pc-ble-driver-py"; 19 - version = "0.16.3"; 19 + version = "0.17.0"; 20 20 21 - disabled = pythonOlder "3.7" || pythonAtLeast "3.10"; 21 + disabled = pythonOlder "3.7"; 22 22 23 23 src = fetchFromGitHub { 24 24 owner = "NordicSemiconductor"; 25 25 repo = "pc-ble-driver-py"; 26 26 rev = "v${version}"; 27 - sha256 = "sha256-X21GQsyRZu1xdoTlD9DjceIWKpcuTLdIDf8UahntS3s="; 27 + sha256 = "sha256-brC33ar2Jq3R2xdrklvVsQKf6pcnKwD25PO4TIvXgTg="; 28 28 }; 29 29 30 30 nativeBuildInputs = [
+4 -26
pkgs/development/tools/misc/nrfutil/default.nix
··· 1 1 { lib 2 2 , stdenv 3 3 , fetchFromGitHub 4 - , pkgs 5 4 , python3 6 - , python3Packages 7 5 }: 8 - let 9 - py = python3.override { 10 - packageOverrides = self: super: { 11 6 12 - libusb1 = super.libusb1.overridePythonAttrs (oldAttrs: rec { 13 - version = "1.9.3"; 14 - src = oldAttrs.src.override { 15 - inherit version; 16 - sha256 = "0j8p7jb7sibiiib18vyv3w5rrk0f4d2dl99bs18nwkq6pqvwxrk0"; 17 - }; 18 - 19 - postPatch = '' 20 - substituteInPlace usb1/libusb1.py --replace \ 21 - "ctypes.util.find_library(base_name)" \ 22 - "'${pkgs.libusb1}/lib/libusb-1.0${stdenv.hostPlatform.extensions.sharedLibrary}'" 23 - ''; 24 - }); 25 - }; 26 - }; 27 - in 28 - with py.pkgs; 7 + with python3.pkgs; 29 8 30 9 buildPythonApplication rec { 31 10 pname = "nrfutil"; 32 - version = "6.1.3"; 11 + version = "6.1.6"; 33 12 34 13 src = fetchFromGitHub { 35 14 owner = "NordicSemiconductor"; 36 15 repo = "pc-nrfutil"; 37 16 rev = "v${version}"; 38 - sha256 = "1gpxjdcjn4rjvk649vpkh563c7lx3rrfvamazb1qjii1pxrvvqa7"; 17 + sha256 = "sha256-UiGNNJxNSpIzpeYMlzocLG2kuetl8xti5A3n6zz0lcY="; 39 18 }; 40 19 41 20 propagatedBuildInputs = [ ··· 60 39 61 40 postPatch = '' 62 41 mkdir test-reports 42 + substituteInPlace requirements.txt --replace "libusb1==1.9.3" "libusb1" 63 43 ''; 64 44 65 45 meta = with lib; { ··· 68 48 license = licenses.unfreeRedistributable; 69 49 platforms = platforms.unix; 70 50 maintainers = with maintainers; [ gebner ]; 71 - # libusb1 1.9.3 uses setuptools' 2to3 translation feature, which has been removed in setuptools 58 72 - broken = true; 73 51 }; 74 52 }