I’m trying to package my static blog with Nix. I’m using Hugo (gohugo.com) to generate the static HTML. Hugo places a lock file in the source directory while building.
This is a problem as Nix really wants to keep sources read-only. I’d prefer if there was an option in Hugo to ignore the lock issue, but there isn’t.
Is there a recommended pattern to deal with this kind of problems?
I recommend just doing cp -r $src ., no need to make a new directory – builds are dropped into a writable directory by default (see my previous comment).