c3ac4d4040
GitOrigin-RevId: 1158501e7c7cba26d922723cf9f70099995eb755
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ lib, stdenv, mkDerivation, fetchFromGitHub
|
|
, cmake, pkg-config, pffft, libpcap, libusb1, python3, wrapQtAppsHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "hobbits";
|
|
version = "0.53.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Mahlet-Inc";
|
|
repo = "hobbits";
|
|
rev = "v${version}";
|
|
hash = "sha256-X2DotmzqeIESkO6o39si4kEkRhLO7yBr6Djh+0s+lFc=";
|
|
};
|
|
|
|
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" ];
|
|
|
|
NIX_CFLAGS_COMPILE = lib.optional 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;
|
|
};
|
|
}
|