mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-19 14:33:16 -04:00
refactor: make nix modules take package instead of entire self
This commit is contained in:
parent
df492dab6b
commit
70f3d20929
4 changed files with 20 additions and 9 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue