Skip to content

Commit

Permalink
chore(lib): fix for a new version of nixpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
PerchunPak committed Dec 10, 2024
1 parent a817009 commit 1e30ee0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ in

# a -> a -> a
# see https://nlewo.github.io/nixos-manual-sphinx/development/option-types.xml.html
# by default enums cannot be merged, but they keep their passed value in `functor.payload`.
# by default enums cannot be merged, but they keep their passed value in `functor.payload.values`.
# `functor.binOp` can merge those values
mergeEnums = a: b: lib.types.enum (a.functor.binOp a.functor.payload b.functor.payload);
mergeEnums = a: b: lib.types.enum (a.functor.binOp a.functor.payload b.functor.payload).values;

# string
# returns the current release version of nixos or home-manager. throws an evaluation error if neither are
Expand Down

0 comments on commit 1e30ee0

Please sign in to comment.