From a32a7848bc973eafbfd5c5abebea3d35e8cdaa45 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Tue, 12 Nov 2024 20:58:02 +0800 Subject: [PATCH] killerbee: fix build --- pkgs/by-name/ki/killerbee/package.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ki/killerbee/package.nix b/pkgs/by-name/ki/killerbee/package.nix index 040aa252e847..28f9bf1e9ddd 100644 --- a/pkgs/by-name/ki/killerbee/package.nix +++ b/pkgs/by-name/ki/killerbee/package.nix @@ -28,14 +28,18 @@ python3.pkgs.buildPythonApplication rec { scapy ]; + preBuild = '' + export HOME=$(mktemp -d) + ''; + pythonImportsCheck = [ "killerbee" ]; - meta = with lib; { + meta = { 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 ]; - platforms = platforms.linux; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ fab ]; + platforms = lib.platforms.linux; }; }