2021-11-09 21:52:46 +00:00
|
|
|
{ stdenv, lib, buildPythonPackage, buildPythonApplication, fetchFromGitHub
|
|
|
|
, pkg-config, cmake, setuptools
|
2021-12-14 20:57:51 +00:00
|
|
|
, libsamplerate, fftwFloat
|
|
|
|
, rtl-sdr, soapysdr-with-plugins, csdr, pycsdr, pydigiham, direwolf, sox, wsjtx, codecserver
|
2021-11-09 21:52:46 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
js8py = buildPythonPackage rec {
|
|
|
|
pname = "js8py";
|
|
|
|
version = "0.1.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jketterl";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1j80zclg1cl5clqd00qqa16prz7cyc32bvxqz2mh540cirygq24w";
|
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "js8py" "test" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/jketterl/js8py";
|
|
|
|
description = "A library to decode the output of the js8 binary of JS8Call";
|
|
|
|
license = licenses.gpl3Only;
|
2021-12-14 20:57:51 +00:00
|
|
|
maintainers = teams.c3d2.members;
|
2021-11-09 21:52:46 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
owrx_connector = stdenv.mkDerivation rec {
|
|
|
|
pname = "owrx_connector";
|
2021-12-14 20:57:51 +00:00
|
|
|
version = "0.6.0";
|
2021-11-09 21:52:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jketterl";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-12-14 20:57:51 +00:00
|
|
|
sha256 = "sha256-1H0TJ8QN3b6Lof5TWvyokhCeN+dN7ITwzRvEo2X8OWc=";
|
2021-11-09 21:52:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-12-14 20:57:51 +00:00
|
|
|
libsamplerate fftwFloat
|
|
|
|
csdr
|
2021-11-09 21:52:46 +00:00
|
|
|
rtl-sdr
|
|
|
|
soapysdr-with-plugins
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/jketterl/owrx_connector";
|
|
|
|
description = "A set of connectors that are used by OpenWebRX to interface with SDR hardware";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.unix;
|
2021-12-14 20:57:51 +00:00
|
|
|
maintainers = teams.c3d2.members;
|
2021-11-09 21:52:46 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "openwebrx";
|
2021-12-14 20:57:51 +00:00
|
|
|
version = "1.2.0";
|
2021-11-09 21:52:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jketterl";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-12-14 20:57:51 +00:00
|
|
|
sha256 = "sha256-7gcgwa9vQT2u8PQusuXKted2Hk0K+Zk6ornSG1K/D4c=";
|
2021-11-09 21:52:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
csdr
|
2021-12-14 20:57:51 +00:00
|
|
|
pycsdr
|
|
|
|
pydigiham
|
2021-11-09 21:52:46 +00:00
|
|
|
js8py
|
|
|
|
soapysdr-with-plugins
|
|
|
|
owrx_connector
|
|
|
|
direwolf
|
2021-12-14 20:57:51 +00:00
|
|
|
sox
|
|
|
|
wsjtx
|
|
|
|
codecserver
|
2021-11-09 21:52:46 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "csdr" "owrx" "test" ];
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
inherit js8py owrx_connector;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/jketterl/openwebrx";
|
|
|
|
description = "A simple DSP library and command-line tool for Software Defined Radio";
|
|
|
|
license = licenses.gpl3Only;
|
2021-12-14 20:57:51 +00:00
|
|
|
maintainers = teams.c3d2.members;
|
2021-11-09 21:52:46 +00:00
|
|
|
};
|
|
|
|
}
|