How to install the Codecrafters CLI on NixOS

Hey All, I am new to Linux and I was trying to get the Codecrafters CLI to run on my device there is a package called codecrafters-cli but it is v36-1a36513 and this one is too outdated and isn’t supported by the codecrafters server. I tried the commands on their website

curl https://codecrafters.io/install.sh | sh

but the shell script hosted at the link here runs a bunch of commands few of them being

INSTALL_DIR=${INSTALL_DIR:-/usr/local/bin}
INSTALL_PATH=${INSTALL_PATH:-$INSTALL_DIR/codecrafters}

the path usr/local/bin doesn’t exist on NixOS if I am not wrong well I don’t think I can modify the path so;

I downloaded one the file called v44_linux_386.tar.gz but I don’t know how to install it it has a readme a license and a executable inside it also I tried chatgpt but frankly it is too dumb it suggested stuff but none worked

The nixpkgs-unstable branch packaged the v44 version of the software

You can use overlays nix function to only take this package from nixpkgs-unstable branch