nmattia/niv

[feature] `init` option to create a tiny shell.nix skeleton

Open

#316 建立於 2021年4月12日

在 GitHub 查看
 (2 留言) (2 反應) (0 負責人)Haskell (77 fork)batch import
enhancementgood first issue

倉庫指標

Star
 (1,829 star)
PR 合併指標
 (平均合併 2天 21小時) (30 天內合併 1 個 PR)

描述

Just a little suggestion here:

I (and at least one of my colleagues) often create ad-hoc nix shells for existing and new projects, and would love it if we could effectively bootstrap a little nix project environment that uses niv using niv init --shell or similar. If --shell is provided and there is no existing shell.nix, a tiny shell.nix template that gets its packages from niv's nixpkgs would be created.

I know this is probably somewhat orthogonal to the tool's goals, and of course what constitutes a "good" shell.nix is a matter of opinion, but I think this would be a real timesaver for many users.

Thanks again for niv!

貢獻者指南