2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2021-03-15 08:37:03 +00:00
|
|
|
, gnuradio3_8Minimal
|
2021-10-28 06:52:43 +00:00
|
|
|
, thrift
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, cmake
|
|
|
|
, fftwFloat
|
2021-03-15 08:37:03 +00:00
|
|
|
, qt5
|
2020-04-24 23:36:52 +00:00
|
|
|
, liquid-dsp
|
|
|
|
}:
|
|
|
|
|
2021-03-15 08:37:03 +00:00
|
|
|
gnuradio3_8Minimal.pkgs.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "inspectrum";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "miek";
|
|
|
|
repo = "inspectrum";
|
2020-09-25 04:45:31 +00:00
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "sha256-yY2W2hQpj8TIxiQBSbQHq0J16n74OfIwMDxFt3mLZYc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-15 08:37:03 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
qt5.wrapQtAppsHook
|
|
|
|
pkg-config
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
fftwFloat
|
|
|
|
liquid-dsp
|
2021-03-15 08:37:03 +00:00
|
|
|
qt5.qtbase
|
2021-10-28 06:52:43 +00:00
|
|
|
] ++ lib.optionals (gnuradio3_8Minimal.hasFeature "gr-ctrlport") [
|
|
|
|
thrift
|
|
|
|
gnuradio3_8Minimal.unwrapped.python.pkgs.thrift
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool for analysing captured signals from sdr receivers";
|
|
|
|
homepage = "https://github.com/miek/inspectrum";
|
|
|
|
maintainers = with maintainers; [ mog ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
};
|
|
|
|
}
|