push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1600871..1536c55 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -158,7 +158,7 @@ elseif(${SSE} AND (${SSE_PRESENT} OR ${SSE_PRESENT} GREATER 0))
# AVX and AVX2 machines will also match on SSE
message(STATUS "sse processor flags found or enabled.")
set(LPCNET_C_PROC_FLAGS -msse4.1)
-elseif(${NEON} AND (${NEON_PRESENT} OR ${NEON_PRESENT} GREATER 0))
+elseif(${NEON} AND (${NEON_PRESENT} OR ${NEON_PRESENT} GREATER 0) AND NOT APPLE)
# RPi / ARM 32bit
message(STATUS "neon processor flags found or enabled.")
set(LPCNET_C_PROC_FLAGS -mfpu=neon -march=armv8-a -mtune=cortex-a53)

View File

@@ -0,0 +1,69 @@
{
lib,
stdenv,
fetchFromGitHub,
fetchurl,
cmake,
codec2,
sox,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "LPCNet";
version = "0.5-unstable-2025-01-19";
src = fetchFromGitHub {
owner = "drowe67";
repo = "LPCNet";
rev = "c8e51ac5e2fe674849cb53e7da44689b572cc246";
sha256 = "sha256-0Knoym+deTuFAyJrrD55MijVh6DlhJp3lss66BJUHiA=";
};
patches = [
# extracted from https://github.com/drowe67/LPCNet/pull/59
./darwin.patch
];
passthru = {
# Prebuilt neural network model that is needed during the build - can be overwritten
nnmodel = fetchurl {
url = "http://rowetel.com/downloads/deep/lpcnet_191005_v1.0.tgz";
hash = "sha256-UJRAkkdR/dh/+qVoPuPd3ZN69cgzuRBMzOZdUWFJJsg=";
};
};
preConfigure = ''
mkdir build
cp \
${finalAttrs.finalPackage.passthru.nnmodel} \
build/${finalAttrs.finalPackage.passthru.nnmodel.name}
'';
nativeBuildInputs = [
cmake
];
buildInputs = [
codec2
];
doCheck = true;
nativeCheckInputs = [
# NOTE: From some reason, the tests pass without this on x86_64-linux, but
# not on aarch64-linux, although the relevant test is not enabled
# conditionally, see:
# https://github.com/drowe67/LPCNet/blob/c8e51ac5e2fe674849cb53e7da44689b572cc246/CMakeLists.txt#L220-L225
sox
];
meta = {
description = "Experimental Neural Net speech coding for FreeDV";
homepage = "https://github.com/drowe67/LPCNet";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [
doronbehar
mvs
];
platforms = lib.platforms.all;
};
})