packages: implement shadows
This commit is contained in:
parent
5dd4589459
commit
8938d311a5
2 changed files with 20 additions and 0 deletions
|
@ -9,6 +9,7 @@ in {
|
|||
./projects.nix
|
||||
./patched-inputs.nix
|
||||
./catalog
|
||||
./shadows.nix
|
||||
];
|
||||
perSystem = { pkgs, self', system, ... }: let
|
||||
patched-derivations = import ./patched-derivations.nix (pkgs // { flakePackages = self'.packages; });
|
||||
|
|
19
packages/shadows.nix
Normal file
19
packages/shadows.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ 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;
|
||||
default = {
|
||||
inherit (self'.packages)
|
||||
kanidm
|
||||
;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue