2021-10-17 09:34:42 +00:00
|
|
|
{ lib, stdenv, mkDerivation, fetchFromGitHub
|
2022-06-16 17:23:12 +00:00
|
|
|
, cmake, pkg-config, pffft, libpcap, libusb1, python3
|
2021-10-17 09:34:42 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "hobbits";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "0.53.1";
|
2021-10-17 09:34:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mahlet-Inc";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "sha256-dMFsv2M96+65JxTOq0CG+vm7a75GkD7N7PmbsyZ2Fog=";
|
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
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
NIX_CFLAGS_COMPILE = lib.optional stdenv.hostPlatform.isAarch64 "-Wno-error=narrowing";
|
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A multi-platform GUI for bit-based analysis, processing, and visualization";
|
|
|
|
homepage = "https://github.com/Mahlet-Inc/hobbits";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|