Exactly
nix \
--extra-experimental-features nix-command \
--extra-experimental-features flakes \
--log-format raw-with-logs \
build --no-link --print-out-paths 'git+ssh://git@github.com/NorfairKing/sshgate?ref=your-first-flake&rev=19243ffcb2c17557e4a91c4d7a957719c6e0832b#packages.x86_64-linux.sshgate' \
--print-build-logs
Locally
Must be run from repository root directory at commit 19243ffc
nix \
--extra-experimental-features nix-command \
--extra-experimental-features flakes \
--log-format raw-with-logs \
build --no-link --print-out-paths .#packages.x86_64-linux.sshgate \
--print-build-logs
Feedback Loop
Must be run from repository root directory at commit 19243ffc
nix run github:NorfairKing/feedback -- -- nix \
--extra-experimental-features nix-command \
--extra-experimental-features flakes \
--log-format raw-with-logs \
build --no-link --print-out-paths .#packages.x86_64-linux.sshgate \
--print-build-logs
Limitations