mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 09:29:41 +08:00
treewide: nix fmt
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
@@ -65,7 +65,6 @@
|
||||
let
|
||||
inherit (lib)
|
||||
concatStringsSep
|
||||
splitString
|
||||
mapAttrsToList
|
||||
any
|
||||
;
|
||||
|
||||
@@ -21,7 +21,6 @@ let
|
||||
isList
|
||||
isString
|
||||
literalExpression
|
||||
maintainers
|
||||
mapAttrsToList
|
||||
mkDefault
|
||||
mkEnableOption
|
||||
|
||||
@@ -8,27 +8,11 @@ let
|
||||
inherit (lib)
|
||||
literalExpression
|
||||
mkOption
|
||||
optionalAttrs
|
||||
types
|
||||
;
|
||||
|
||||
cfg = config.programs.sm64ex;
|
||||
|
||||
# This is required for tests, we cannot overwrite the dummy package.
|
||||
package =
|
||||
if cfg.region == null && cfg.baserom == null && cfg.extraCompileFlags == null then
|
||||
cfg.package
|
||||
else
|
||||
cfg.package.override (
|
||||
attrs:
|
||||
{ }
|
||||
// optionalAttrs (cfg.region != null) { region = cfg.region; }
|
||||
// optionalAttrs (cfg.baserom != null) { baseRom = cfg.baserom; }
|
||||
// optionalAttrs (cfg.extraCompileFlags != null) {
|
||||
compileFlags = cfg.extraCompileFlags;
|
||||
}
|
||||
);
|
||||
|
||||
mkConfig =
|
||||
key: value:
|
||||
let
|
||||
|
||||
Reference in New Issue
Block a user