Merge pull request #180039 from astro/openwebrx

This commit is contained in:
Sandro
2022-07-07 14:48:48 +02:00
committed by GitHub
4 changed files with 34 additions and 0 deletions
@@ -20,6 +20,9 @@ in
path = with pkgs; [
csdr
digiham
codec2
js8call
m17-cxx-demod
alsaUtils
netcat
];
@@ -0,0 +1,24 @@
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, boost, codec2 }:
stdenv.mkDerivation rec {
pname = "m17-cxx-demod";
version = "2.3";
src = fetchFromGitHub {
owner = "mobilinkd";
repo = pname;
rev = "v${version}";
hash = "sha256-mvppkFBmmPVqvlqIqrbwGrOBih5zS5sZrV/usEhHiws=";
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ codec2 boost ];
meta = with lib; {
description = "M17 Demodulator in C++";
homepage = "https://github.com/mobilinkd/m17-cxx-demod";
license = licenses.gpl3Only;
platforms = platforms.unix;
maintainers = teams.c3d2.members;
};
}
@@ -13,6 +13,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
# Install a binary that is used by openwebrx
postInstall = ''
install -Dm0755 src/freedv_rx -t $out/bin/
'';
# Swap keyword order to satisfy SWIG parser
postFixup = ''
sed -r -i 's/(\<_Complex)(\s+)(float|double)/\3\2\1/' $out/include/$pname/freedv_api.h
+2
View File
@@ -4983,6 +4983,8 @@ with pkgs;
inherit (gnome) gnome-common;
};
m17-cxx-demod = callPackage ../applications/radio/m17-cxx-demod { };
m17n_db = callPackage ../tools/inputmethods/m17n-db { };
m17n_lib = callPackage ../tools/inputmethods/m17n-lib { };