diff options
author | Andrew Dunham <andrew@du.nham.ca> | 2020-07-12 17:37:11 -0700 |
---|---|---|
committer | Andrew Dunham <andrew@du.nham.ca> | 2020-07-16 17:59:24 -0700 |
commit | 6f1acf82c0733e61a84c9680d0279917f83e5689 (patch) | |
tree | b562c4b0437f7892c6fe886f5e53a59d39ffb1dd /pkgs/applications/radio | |
parent | f856cb8a9ed5653a50ca1ea0d22726e8b8513ca6 (diff) |
dsd: init at 2018-07-01
Diffstat (limited to 'pkgs/applications/radio')
-rw-r--r-- | pkgs/applications/radio/dsd/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/applications/radio/dsd/default.nix b/pkgs/applications/radio/dsd/default.nix new file mode 100644 index 0000000000000..a369486278be0 --- /dev/null +++ b/pkgs/applications/radio/dsd/default.nix @@ -0,0 +1,44 @@ +{ stdenv, fetchFromGitHub, cmake +, 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 + ] ++ stdenv.lib.optionals portaudioSupport [ portaudio ]; + + enableParallelBuilding = true; + + 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 stdenv.lib; { + 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; + license = licenses.gpl2; + platforms = platforms.unix; + maintainers = with maintainers; [ andrew-d ]; + }; +} |