mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Programs/LibreOffice] simply applyOverrides
This commit is contained in:
parent
c1d4a910f6
commit
902ef0a522
1 changed files with 2 additions and 10 deletions
|
|
@ -7,16 +7,8 @@ let
|
||||||
then "<function>"
|
then "<function>"
|
||||||
else (builtins.toJSON x)
|
else (builtins.toJSON x)
|
||||||
;
|
;
|
||||||
applyOverrides = overrides: pkg:
|
|
||||||
foldl'
|
applyOverrides = overrides: pkg: pipe pkg overrides;
|
||||||
(prev: override:
|
|
||||||
let
|
|
||||||
r = (trace "override: ${toStringOrFunc override}" override) (trace "prev: ${toString prev}" prev);
|
|
||||||
in trace "result: ${toString r}" r
|
|
||||||
)
|
|
||||||
pkg
|
|
||||||
overrides
|
|
||||||
;
|
|
||||||
in {
|
in {
|
||||||
options.aviallon.programs.libreoffice = {
|
options.aviallon.programs.libreoffice = {
|
||||||
enable = mkEnableOption "LibreOffice";
|
enable = mkEnableOption "LibreOffice";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue