numtide / flake-utils

Pure Nix flake utility functions [maintainer=@zimbatm]
MIT License
1.14k stars 78 forks source link

Add meld #99

Closed javbit closed 1 year ago

javbit commented 1 year ago

Meld allows you to break up a Nix Flake into parts while using the same inputs across all of them. This is useful for splitting up large flakes which are common in monorepos.

javbit commented 1 year ago

Not sure if this philosophically belongs in flake-utils, but I thought I'd share it since this function has been pretty useful for me at work as we have a large monorepo flake.

Not tied to the name or anything, so please let me know if you have better ideas or suggestions. Love to get some feedback on my nix code!

zimbatm commented 1 year ago

Looks good. The only blocker I see would be to remove the dependency on nixpkgs, which you can do by copying the lib functions over. If you could add the description in the README.md that would be great.

javbit commented 1 year ago

@zimbatm I removed the nixpkgs dependency and added the synopsis to the README.md.

zimbatm commented 1 year ago

thanks!