nixpkgs/pkgs/applications/radio/dsd/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.0 KiB
Nix
Raw Normal View History

{ 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";
version = "2022-03-14";
2020-07-13 00:37:11 +00:00
src = fetchFromGitHub {
owner = "szechyjs";
repo = "dsd";
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;
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.
'';
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 ];
};
}