Attempting to patch Sitala

I’m trying to get Sitala to work on my NixOS system. It’s a VST plugin which is available from this website Sitala - Drum Sampler Plugin. I’m using the .deb package.
I’m not familiar with how to do what I’m trying to do so I’m following this post at method 1.
I were able to extract the package with dpkg and I’m attempting to run the usr/bin/Sitala binary.
I were able to figure out some other missing library that already exists in my system using the suggestions in the post but there is one that I need to install.
It is libcurl-gnutls.so.4 which is fromcurlWithGnuTls package that I’ve located via nix-locate. I’ve installed that package via nix shell.
Then I run the program:

LD_LIBRARY_PATH=/nix/store/1f105bj3x8pfjfhgfwmrg8ch1pxva96n-alsa-lib-1.2.13/lib:/nix/store/wfrgia7qj3ijrxl9irsqvjfz20qqx5fm-libX11-1.8.12/lib:/nix/store/1im4v3c1rvqrqmjdy8ybaw7czzhiq20k-freetype-2.13.3/lib:/nix/store/1im4v3c1rvqrqmjdy8ybaw7czzhiq20k-freetype-2.13.3/lib:/nix/store/y2f56kbnc0gznl2g1kq2sbair731x6yj-curl-8.13.0/lib:/nix/store/ik84lbv5jvjm1xxvdl8mhg52ry3xycvm-gcc-14-20241116-lib/lib:/nix/store/gmirqf6vp6rskn2dhfyd7haphy6kjnvk-libXext-1.3.6/lib:$LD_LIBRARY_PATH /nix/store/h7zcxabfxa7v5xdna45y2hplj31ncf8a-glibc-2.40-36/lib/ld-linux-x86-64.so.2 ./sitala
./sitala: /nix/store/y2f56kbnc0gznl2g1kq2sbair731x6yj-curl-8.13.0/lib/libcurl-gnutls.so.4: version `CURL_GNUTLS_3' not found (required by ./sitala)

But this error came up. What should I do?

Solved version `CURL_GNUTLS_3' not found · curl/curl · Discussion #17855 · GitHub

hi! i’ve run into this same issue, would you be able to share how you implemented the solution in the package?

Get the source. Edit the files manually. Diff it with the original code to get a patch file, then add that file to the patches list in the derivation.

nixpkgs has a million examples of using patches.

yes, but how do i patch a file in libcurl from my own package declaration? is there a good example?

I.e., https://discourse.nixos.org/t/nixos-and-raspberry-pi-zero-2w-pi-camera-module-v3/46319/2