12 stdenv.mkDerivation (finalAttrs: {
16 src = fetchFromGitHub {
19 rev = "v${finalAttrs.version}";
20 hash = "sha256-tHZLKXmuM86A6OpfS3CRRjhFbqj1Q/w1w56msdgLHb0=";
23 # Prebuilt neural network model that is needed during the build - can be overrwritten
25 url = "http://rowetel.com/downloads/deep/lpcnet_191005_v1.0.tgz";
26 hash = "sha256-UJRAkkdR/dh/+qVoPuPd3ZN69cgzuRBMzOZdUWFJJsg=";
32 ${finalAttrs.finalPackage.passthru.nnmodel} \
33 build/${finalAttrs.finalPackage.passthru.nnmodel.name}
37 patchShebangs *.sh unittest/*.sh
40 nativeBuildInputs = [ cmake ];
41 buildInputs = [ codec2 ];
42 nativeCheckInputs = [ octave ];
46 export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}/build/source/build/src"
50 description = "Experimental Neural Net speech coding for FreeDV";
51 homepage = "https://github.com/drowe67/LPCNet";
52 license = licenses.bsd3;
53 maintainers = with maintainers; [ doronbehar ];
54 platforms = platforms.all;