mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
treewide: nix fmt
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
c140680b7a
commit
9136120c36
3 changed files with 0 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue