# Pastebin 6GBAyJEU mkDerivation { ... librarySystemDepends = [ portaudio ]; ... C_INCLUDE_PATH = stdenv.lib.makeSearchPathOutput "dev" "include" librarySystemDepends; LIBRARY_PATH = stdenv.lib.makeLibraryPath librarySystemDepends; };