From e0a07d84b8c1b69df3510cd3b0f923e98e843ec8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 10:17:40 +0200 Subject: [PATCH 1/3] killerbee: refactor --- pkgs/by-name/ki/killerbee/package.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ki/killerbee/package.nix b/pkgs/by-name/ki/killerbee/package.nix index d483da652ff9..d5929fca29a3 100644 --- a/pkgs/by-name/ki/killerbee/package.nix +++ b/pkgs/by-name/ki/killerbee/package.nix @@ -16,7 +16,7 @@ python3.pkgs.buildPythonApplication rec { hash = "sha256-WM0Z6sd8S71F8FfhhoUq3MSD/2uvRTY/FsBP7VGGtb0="; }; - nativeBuildInputs = with python3.pkgs; [ + build-system = with python3.pkgs; [ setuptools ]; @@ -24,7 +24,7 @@ python3.pkgs.buildPythonApplication rec { libgcrypt ]; - propagatedBuildInputs = with python3.pkgs; [ + dependencies = with python3.pkgs; [ pyserial pyusb rangeparser @@ -38,6 +38,7 @@ python3.pkgs.buildPythonApplication rec { meta = with lib; { description = "IEEE 802.15.4/ZigBee Security Research Toolkit"; homepage = "https://github.com/riverloopsec/killerbee"; + changelog = "https://github.com/riverloopsec/killerbee/releases/tag/${version}"; license = licenses.bsd3; maintainers = with maintainers; [ fab ]; }; From 3afead06bdd4db2d06a547e7912bbef17ea9f45d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 10:18:37 +0200 Subject: [PATCH 2/3] killerbee: format with nixfmt --- pkgs/by-name/ki/killerbee/package.nix | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/pkgs/by-name/ki/killerbee/package.nix b/pkgs/by-name/ki/killerbee/package.nix index d5929fca29a3..3fd58b08b267 100644 --- a/pkgs/by-name/ki/killerbee/package.nix +++ b/pkgs/by-name/ki/killerbee/package.nix @@ -1,7 +1,8 @@ -{ lib -, fetchFromGitHub -, libgcrypt -, python3 +{ + lib, + fetchFromGitHub, + libgcrypt, + python3, }: python3.pkgs.buildPythonApplication rec { @@ -16,13 +17,9 @@ python3.pkgs.buildPythonApplication rec { hash = "sha256-WM0Z6sd8S71F8FfhhoUq3MSD/2uvRTY/FsBP7VGGtb0="; }; - build-system = with python3.pkgs; [ - setuptools - ]; + build-system = with python3.pkgs; [ setuptools ]; - buildInputs = with python3.pkgs; [ - libgcrypt - ]; + buildInputs = with python3.pkgs; [ libgcrypt ]; dependencies = with python3.pkgs; [ pyserial @@ -31,9 +28,7 @@ python3.pkgs.buildPythonApplication rec { scapy ]; - pythonImportsCheck = [ - "killerbee" - ]; + pythonImportsCheck = [ "killerbee" ]; meta = with lib; { description = "IEEE 802.15.4/ZigBee Security Research Toolkit"; From bf6276ffa8727001423f6a447b08e0c8756de2f6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 10:19:19 +0200 Subject: [PATCH 3/3] killerbee: limit platform support --- pkgs/by-name/ki/killerbee/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/ki/killerbee/package.nix b/pkgs/by-name/ki/killerbee/package.nix index 3fd58b08b267..040aa252e847 100644 --- a/pkgs/by-name/ki/killerbee/package.nix +++ b/pkgs/by-name/ki/killerbee/package.nix @@ -36,5 +36,6 @@ python3.pkgs.buildPythonApplication rec { changelog = "https://github.com/riverloopsec/killerbee/releases/tag/${version}"; license = licenses.bsd3; maintainers = with maintainers; [ fab ]; + platforms = platforms.linux; }; }