mvoice: init at 0-unstable-2025-09-19 (#466777)

This commit is contained in:
Grimmauld
2026-01-21 14:34:48 +00:00
committed by GitHub
+82
View File
@@ -0,0 +1,82 @@
{
lib,
stdenv,
gettext,
fltk-minimal,
alsa-lib,
opendht,
msgpack-cxx,
fmt,
gnutls,
nlohmann_json,
curl,
copyDesktopItems,
makeDesktopItem,
fetchFromGitHub,
}:
stdenv.mkDerivation {
pname = "mvoice";
version = "0-unstable-2025-09-19";
src = fetchFromGitHub {
owner = "n7tae";
repo = "mvoice";
rev = "aef3662ee6ef86ecb10a71dd686ca41a067162c0";
hash = "sha256-FosfD1949shlPXq594gdqodlXM3cGKpFi68tc+/YQ4g=";
};
strictDeps = true;
nativeBuildInputs = [
copyDesktopItems
fltk-minimal
gettext
];
buildInputs = [
alsa-lib
curl
fltk-minimal
fmt
gnutls
msgpack-cxx
nlohmann_json
opendht
];
desktopItems = [
(makeDesktopItem {
name = "mvoice";
desktopName = "MVoice";
comment = "MVoice by N7TAE - M17 figital voice gateway";
exec = "mvoice";
categories = [
"Network"
"X-Ham Radio"
];
})
];
postPatch = ''
# fix hardcoded paths in Makefile
substituteInPlace Makefile \
--replace-fail "g++" "\$(CXX)" \
--replace-fail "/bin/cp" "cp"
'';
makeFlags = [
"BASEDIR=$(out)"
"CFGDIR=.config/mvoice"
"DEBUG=false"
"USE44100=false"
"USE_DHT=true"
];
meta = {
description = "M17 digital voice gateway and module for voice and data modes";
homepage = "https://github.com/n7tae/mvoice";
license = lib.licenses.gpl2Only;
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.juliabru ];
};
}