2021-10-17 09:34:42 +00:00
|
|
|
{ lib, stdenv, mkDerivation, fetchFromGitHub
|
2022-09-14 18:05:37 +00:00
|
|
|
, cmake, pkg-config, pffft, libpcap, libusb1, python3, wrapQtAppsHook
|
2021-10-17 09:34:42 +00:00
|
|
|
}:
|
|
|
|
|
2022-09-14 18:05:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-10-17 09:34:42 +00:00
|
|
|
pname = "hobbits";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.54.1";
|
2021-10-17 09:34:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mahlet-Inc";
|
2022-09-14 18:05:37 +00:00
|
|
|
repo = "hobbits";
|
2021-10-17 09:34:42 +00:00
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-SbSuw5e2ll/wU5UBV0MOlvCXb4rvPtsE4l8XzRbBiLI=";
|
2021-10-17 09:34:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/hobbits-core/settingsdata.cpp \
|
|
|
|
--replace "pythonHome = \"/usr\"" "pythonHome = \"${python3}\""
|
|
|
|
substituteInPlace cmake/gitversion.cmake \
|
|
|
|
--replace "[Mystery Build]" "${version}"
|
|
|
|
'';
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
buildInputs = [ pffft libpcap libusb1 python3 ];
|
2021-10-17 09:34:42 +00:00
|
|
|
|
2022-09-14 18:05:37 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DUSE_SYSTEM_PFFFT=ON" ];
|
2021-10-17 09:34:42 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isAarch64 "-Wno-error=narrowing";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Multi-platform GUI for bit-based analysis, processing, and visualization";
|
2021-10-17 09:34:42 +00:00
|
|
|
homepage = "https://github.com/Mahlet-Inc/hobbits";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|