3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/graphics/hobbits/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.1 KiB
Nix
Raw Normal View History

2020-04-09 17:42:46 +01:00
{ lib, stdenv, mkDerivation, fetchFromGitHub
2022-09-06 14:24:08 +01:00
, cmake, pkg-config, pffft, libpcap, libusb1, python3, wrapQtAppsHook
2020-04-09 17:42:46 +01:00
}:
2022-09-06 14:24:08 +01:00
stdenv.mkDerivation rec {
2020-04-09 17:42:46 +01:00
pname = "hobbits";
2022-09-06 14:24:08 +01:00
version = "0.53.2";
2020-04-09 17:42:46 +01:00
src = fetchFromGitHub {
owner = "Mahlet-Inc";
2022-09-06 14:24:08 +01:00
repo = "hobbits";
2020-04-09 17:42:46 +01:00
rev = "v${version}";
2022-09-06 14:24:08 +01:00
hash = "sha256-X2DotmzqeIESkO6o39si4kEkRhLO7yBr6Djh+0s+lFc=";
2020-04-09 17:42:46 +01:00
};
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 ];
2020-04-09 17:42:46 +01:00
2022-09-06 14:24:08 +01:00
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
cmakeFlags = [ "-DUSE_SYSTEM_PFFFT=ON" ];
2020-04-09 17:42:46 +01:00
NIX_CFLAGS_COMPILE = lib.optional stdenv.hostPlatform.isAarch64 "-Wno-error=narrowing";
2020-04-09 17:42:46 +01: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;
};
}