nixos/xmonad: allow passing compile time options to ghc invocation
This commit is contained in:
@@ -16,6 +16,7 @@ let
|
|||||||
cfg.extraPackages cfg.haskellPackages ++
|
cfg.extraPackages cfg.haskellPackages ++
|
||||||
optionals cfg.enableContribAndExtras
|
optionals cfg.enableContribAndExtras
|
||||||
(with cfg.haskellPackages; [ xmonad-contrib xmonad-extras ]);
|
(with cfg.haskellPackages; [ xmonad-contrib xmonad-extras ]);
|
||||||
|
inherit (cfg) ghcArgs;
|
||||||
} cfg.config;
|
} cfg.config;
|
||||||
|
|
||||||
in
|
in
|
||||||
@@ -85,6 +86,15 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ghcArgs = mkOption {
|
||||||
|
default = [];
|
||||||
|
type = with lib.types; listOf str;
|
||||||
|
description = ''
|
||||||
|
Command line arguments passed to the compiler (ghc)
|
||||||
|
invocation when xmonad.config is set.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|||||||
Reference in New Issue
Block a user