nix run is awesome!!!

/flake.nix

      apps.${system}.default = {
        type = "app";
        program = "${pkgs.writeShellScriptBin "my-tool" ''
          ${./hello.sh}
        ''}/bin/my-tool";
      };

/hello.sh

#!/usr/bin/env bash
echo "Hello from nix run 🚀"

Run it with:

nix run git+ssh://git@server1:222/lkat/monorepo.git