2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake
|
2020-07-13 00:37:11 +00:00
|
|
|
, mbelib, libsndfile, itpp
|
|
|
|
, portaudioSupport ? true, portaudio ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert portaudioSupport -> portaudio != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dsd";
|
2022-05-20 07:52:48 +00:00
|
|
|
version = "2022-03-14";
|
2020-07-13 00:37:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "szechyjs";
|
|
|
|
repo = "dsd";
|
2022-05-20 07:52:48 +00:00
|
|
|
rev = "59423fa46be8b41ef0bd2f3d2b45590600be29f0";
|
|
|
|
sha256 = "128gvgkanvh4n5bjnzkfk419hf5fdbad94fb8d8lv67h94vfchyd";
|
2020-07-13 00:37:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [
|
|
|
|
mbelib libsndfile itpp
|
2021-01-15 05:42:41 +00:00
|
|
|
] ++ lib.optionals portaudioSupport [ portaudio ];
|
2020-07-13 00:37:11 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-07-13 00:37:11 +00:00
|
|
|
description = "Digital Speech Decoder";
|
|
|
|
longDescription = ''
|
|
|
|
DSD is able to decode several digital voice formats from discriminator
|
|
|
|
tap audio and synthesize the decoded speech. Speech synthesis requires
|
|
|
|
mbelib, which is a separate package.
|
|
|
|
'';
|
2021-11-10 10:37:56 +00:00
|
|
|
homepage = "https://github.com/szechyjs/dsd";
|
2020-07-13 00:37:11 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ andrew-d ];
|
|
|
|
};
|
|
|
|
}
|