2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake
|
2020-08-20 17:08:02 +00:00
|
|
|
, mbelib, libsndfile, itpp
|
|
|
|
, portaudioSupport ? true, portaudio ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert portaudioSupport -> portaudio != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dsd";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "2022-03-14";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "szechyjs";
|
|
|
|
repo = "dsd";
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "59423fa46be8b41ef0bd2f3d2b45590600be29f0";
|
|
|
|
sha256 = "128gvgkanvh4n5bjnzkfk419hf5fdbad94fb8d8lv67h94vfchyd";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [
|
|
|
|
mbelib libsndfile itpp
|
2021-01-15 22:18:51 +00:00
|
|
|
] ++ lib.optionals portaudioSupport [ portaudio ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-08-20 17:08:02 +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-12-06 16:07:01 +00:00
|
|
|
homepage = "https://github.com/szechyjs/dsd";
|
2020-08-20 17:08:02 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ andrew-d ];
|
|
|
|
};
|
|
|
|
}
|