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

43 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake
2020-07-13 02:37:11 +02:00
, mbelib, libsndfile, itpp
, portaudioSupport ? true, portaudio ? null
}:
assert portaudioSupport -> portaudio != null;
stdenv.mkDerivation rec {
pname = "dsd";
version = "2018-07-01";
src = fetchFromGitHub {
owner = "szechyjs";
repo = "dsd";
rev = "f175834e45a1a190171dff4597165b27d6b0157b";
sha256 = "0w4r13sxvjwacdwxr326zr6p77a8p6ny0g6im574jliw5j3shlhr";
};
nativeBuildInputs = [ cmake ];
buildInputs = [
mbelib libsndfile itpp
2021-01-15 06:42:41 +01:00
] ++ lib.optionals portaudioSupport [ portaudio ];
2020-07-13 02:37:11 +02:00
doCheck = true;
preCheck = ''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD
'';
meta = with lib; {
2020-07-13 02:37:11 +02: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 02:37:11 +02:00
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = with maintainers; [ andrew-d ];
};
}