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
|
let
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
concatStringsSep
|
concatStringsSep
|
||||||
splitString
|
|
||||||
mapAttrsToList
|
mapAttrsToList
|
||||||
any
|
any
|
||||||
;
|
;
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,6 @@ let
|
||||||
isList
|
isList
|
||||||
isString
|
isString
|
||||||
literalExpression
|
literalExpression
|
||||||
maintainers
|
|
||||||
mapAttrsToList
|
mapAttrsToList
|
||||||
mkDefault
|
mkDefault
|
||||||
mkEnableOption
|
mkEnableOption
|
||||||
|
|
|
||||||
|
|
@ -8,27 +8,11 @@ let
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
literalExpression
|
literalExpression
|
||||||
mkOption
|
mkOption
|
||||||
optionalAttrs
|
|
||||||
types
|
types
|
||||||
;
|
;
|
||||||
|
|
||||||
cfg = config.programs.sm64ex;
|
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 =
|
mkConfig =
|
||||||
key: value:
|
key: value:
|
||||||
let
|
let
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue