refactor: make nix modules take package instead of entire self

This commit is contained in:
pengo 2026-06-08 18:02:07 -06:00
parent df492dab6b
commit 70f3d20929
4 changed files with 20 additions and 9 deletions

View file

@ -1,4 +1,4 @@
self: {
mangoPackage: {
config,
lib,
pkgs,
@ -16,7 +16,7 @@ in {
};
package = lib.mkOption {
type = lib.types.package;
default = self.packages.${pkgs.stdenv.hostPlatform.system}.mango;
default = mangoPackage;
description = "The mango package to use";
};
};