1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2024-12-14 11:47:31 +00:00
103: add lib argument to multi-module template r=roberth a=DavHau

Might be biased by my use cases but I nearly always need lib. Even if not it doesn't hurt to have it.
Also the top-level flake.nix could really use a `lib` attribute. But not sure what would be the best way to bring it in scope.
Many users will need lib, so I think it would be good to propose a sane default of how to bring it in.

Co-authored-by: DavHau <hsngrmpf+github@gmail.com>
This commit is contained in:
bors[bot] 2023-01-10 14:51:59 +00:00 committed by GitHub
commit 82c16f1682
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
# Definitions can be imported from a separate file like this one
{ self, ... }: {
{ self, lib, ... }: {
perSystem = { config, self', inputs', pkgs, ... }: {
# Definitions like this are entirely equivalent to the ones
# you may have directly in flake.nix.