lib/types: merge into extendedLib

This commit is contained in:
Matt Sturgeon 2024-08-03 16:28:41 +01:00
parent 38b09c1621
commit b414a53649
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
3 changed files with 13 additions and 5 deletions

View file

@ -1,5 +1,9 @@
# Extends nixpkg's lib with our functions, as expected by our modules
{ lib, helpers }:
{
call,
lib,
helpers,
}:
lib.extend (
final: prev: {
# Include our custom lib
@ -7,5 +11,8 @@ lib.extend (
# Merge in our maintainers
maintainers = prev.maintainers // import ./maintainers.nix;
# Merge in our custom types
types = call ./types.nix { } // prev.types;
}
)