depot/packages/shadows.nix

16 lines
447 B
Nix
Raw Normal View History

2024-07-16 03:17:23 +03:00
{ lib, ... }:
{
perSystem = { inputs', self', ... }: {
# much like overlays, shadows can *shadow* packages in nixpkgs
# unlike overlays, shadows don't cause a nixpkgs re-evaluation
# this is a hack for dealing with poorly written NixOS modules
# that don't provide a `package` option to perform overrides
options.shadows = lib.mkOption {
type = with lib.types; lazyAttrsOf package;
2024-08-02 13:42:26 +03:00
default = { };
2024-07-16 03:17:23 +03:00
};
};
}