Nix run on a self-hosted git repo with flake?

Heya! I am trying to start a program with a nix.flake that I have in my own self-hosted git repository.

I tried running

nix run https://git.my-repo.com/my-project --extra-experimental-features nix-command --extra-experimental-features flakes

Where I know there is a flake.nix in the root of the git repository.

I end up with the error

error: getting status of '/nix/store/an14lfg28y7wafx17m2wr208cwksh0lg-source/flake.nix': Not a directory

Not sure what to do.

Can you try prefixing your url with “git+”

That worked! Thank you!