Permission Denied Error During Filebrowser Derivation Build

I’m currently working on my first derivation for Filebrowser, but I encountered an error during the build process. Here is the content of my default.nix file:

with import <nixpkgs> {};

stdenv.mkDerivation {
  name = "filebrowser";
  src = fetchFromGitHub {
    owner = "filebrowser";
    repo = "filebrowser";
    rev = "v2.23.0";
    sha256 = "05vhfapfhyv5s6jlha7gv8zb6ifi2nqb8418bm63gi1dq4jlh466";
  buildInputs = [ ncurses nodejs ];

  buildPhase = ''
  mkdir -p $out/bin
  cd $src
  make build SHELL=${pkgs.bash}/bin/bash
  cp filebrowser $out/bin

  meta = with pkgs.lib; {
    description = "Web File Browser";
    homepage = "";
    license = licenses.asl20;

However, I’m encountering the following error during the build process:

mkdir: cannot create directory '/nix/store/ajcwh413sb4kb322ic940z5nar44zwl5-source/tools/bin': Permission denied
npm ERR! code EACCES
make: *** [Makefile:13: build-frontend] Error 243

is there a way to specify a different directory for the build process? This way, I can avoid the read-only /nix/store directory