cryptpad: reformat with nixpkgs-fmt

This commit is contained in:
DavHau 2021-08-10 17:12:51 +02:00 committed by Raphael Megzari
parent df0f76b39f
commit 04412d1f51

View File

@ -34,16 +34,16 @@ let
let
list =
lib.concatMap
(name:
let v = set.${name}; in
if pred name v then [v] else []
)
(lib.attrNames set)
;
in
if list == [] then default
else lib.head list
(name:
let v = set.${name}; in
if pred name v then [ v ] else [ ]
)
(lib.attrNames set)
;
in
if list == [ ] then default
else lib.head list
;
# The cryptpad package attribute key changes for each release. Get it out
# programatically instead.
@ -51,7 +51,7 @@ let
(k: v: v.packageName == "cryptpad")
(throw "cryptpad not found")
nodePackages
;
;
combined = cryptpad.override {
postInstall = ''
@ -77,4 +77,4 @@ let
};
in
combined
combined