anchor.diff:          cp ${asterisk-opus}/codecs/* ./codecs
           cp ${asterisk-opus}/formats/* ./formats
         ''}
  +      ${lib.concatMapStringsSep "\n" (patch: ''
  +        cp ${patch} ./third-party/pjproject/patches/${patch.name}
  +      '') pjsip_patches}
         ./bootstrap.sh
       '';
   
  
positive.code:   util-linux, dmidecode, libuuid, newt,
    lua, speex, libopus, opusfile, libogg,
    srtp, wget, curl, iksemel, pkg-config,
    autoconf, libtool, automake,
    python39, writeScript,
    withOpus ? true,
  }:
  
  let
    common = {version, sha256, externals}: stdenv.mkDerivation {
      inherit version;
      pname = "asterisk";
  
negative.code:       license = licenses.gpl2Only;
        maintainers = with maintainers; [ auntie DerTim1 yorickvp ];
      };
    };
  
    pjproject_2_12_1 = fetchurl {
  