Is it possible to use build flakes outside a Git repository? I like the purity of flakes, but for this project I have to store any nix files in Perforce - disgusting - but is it possible?
Ahh figured it out:
nix build path:.
…does the job!
it seems the derivation changes at every build when using this method, you don’t benefit from evaluation caching and your project always get rebuilt. This is the behavior I’m experiencing at least.
That’s unavoidable - without Git to tell Nix which files are part of the flake, it has to assume that every file is part of the flake, so any change triggers a re-evaluation/rebuild.