mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-10 10:48:00 +00:00
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
libpulseaudio,
|
|
audioop-lts,
|
|
lxmf,
|
|
numpy,
|
|
pycodec2,
|
|
rns,
|
|
soundcard,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "lxst";
|
|
version = "0.4.4";
|
|
pyproject = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "markqvist";
|
|
repo = "lxst";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-MAJ1n6EUZ6FmIfKKuM2ppbTVrWkxpjC5KIICo5stc+k=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace LXST/Platforms/linux/soundcard.py \
|
|
--replace-fail "libpulse.so" "${lib.getLib libpulseaudio}/lib/libpulse.so"
|
|
'';
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
audioop-lts
|
|
pycodec2
|
|
numpy
|
|
rns
|
|
lxmf
|
|
soundcard
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/markqvist/LXST/releases/tag/${finalAttrs.version}";
|
|
description = "Simple and flexible real-time streaming format and delivery protocol for Reticulum";
|
|
homepage = "https://github.com/markqvist/LXST";
|
|
license = lib.licenses.cc-by-nc-nd-40;
|
|
maintainers = with lib.maintainers; [
|
|
drupol
|
|
];
|
|
mainProgram = "rnphone";
|
|
};
|
|
})
|