edolstra / flake-compat

MIT License
254 stars 71 forks source link

Allow calling flakes without a flake.lock #5

Closed matthewbauer closed 4 years ago

matthewbauer commented 4 years ago

If no inputs but "self" are specified, Nix will not generate a flake.lock at all. In this case, Flakes are mostly just used to provide a more pure Nix experience, while sources are locked through some other means (niv, ob thunk, manually, etc.). Supporting this is a little weird, but it ends up working for my repo (https://github.com/matthewbauer/nixiosk).