anchor.diff:  , libsndfile
   , lpcnetfreedv
   , portaudio
  +, pulseaudio
   , speexdsp
   , hamlib
   , wxGTK31-gtk3
  
positive.code: 
  stdenv.mkDerivation rec {
    pname = "freedv";
    version = "1.6.1";
  
    src = fetchFromGitHub {
      owner = "drowe67";
      repo = "freedv-gui";
      rev = "v${version}";
      sha256 = "1dzhf944vgla9a5ilcgwivhzgdbfaknqnwbpb071a0rz8rajnv0q";
    };
  
    nativeBuildInputs = [ cmake ];
  
negative.code:     libsamplerate
      libsndfile
      lpcnetfreedv
      speexdsp
      hamlib
      wxGTK31-gtk3
    ] ++ (if stdenv.isLinux then [ pulseaudio ] else [ portaudio ]);
  
    cmakeFlags = [
      "-DUSE_INTERNAL_CODEC2:BOOL=FALSE"
      "-DUSE_STATIC_DEPS:BOOL=FALSE"
    ] ++ lib.optionals stdenv.isLinux [ "-DUSE_PULSEAUDIO:BOOL=TRUE" ];
  
    meta = with lib; {
      homepage = "https://freedv.org/";
  