blob: db0f30e84690384c391f6ef25b54230a98ca9508 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{ lib, stdenv, mkDerivation, fetchFromGitHub
, cmake, pkg-config, pffft, libpcap, libusb1, python3, wrapQtAppsHook
}:
stdenv.mkDerivation rec {
pname = "hobbits";
version = "0.54.1";
src = fetchFromGitHub {
owner = "Mahlet-Inc";
repo = "hobbits";
rev = "v${version}";
hash = "sha256-SbSuw5e2ll/wU5UBV0MOlvCXb4rvPtsE4l8XzRbBiLI=";
};
postPatch = ''
substituteInPlace src/hobbits-core/settingsdata.cpp \
--replace "pythonHome = \"/usr\"" "pythonHome = \"${python3}\""
substituteInPlace cmake/gitversion.cmake \
--replace "[Mystery Build]" "${version}"
'';
buildInputs = [ pffft libpcap libusb1 python3 ];
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
cmakeFlags = [ "-DUSE_SYSTEM_PFFFT=ON" ];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isAarch64 "-Wno-error=narrowing";
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;
};
}
|