nixcfg/lib/default.nix
Harald Hoyer 900f95169f nix fmt
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2024-11-19 10:31:29 +01:00

26 lines
405 B
Nix

{
lib,
inputs,
snowfall-inputs,
}:
rec {
## Override a package's metadata
##
## ```nix
## let
## new-meta = {
## description = "My new description";
## };
## in
## lib.override-meta new-meta pkgs.hello
## ```
##
#@ Attrs -> Package -> Package
override-meta =
meta: package:
package.overrideAttrs (attrs: {
meta = (attrs.meta or { }) // meta;
});
}