mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-09-11 14:35:30 +03:00
fix: use user set translator only if project supports that translator
This commit is contained in:
parent
0131c22c36
commit
2c7b658174
@ -474,7 +474,12 @@ in let
|
||||
invalidationHash = getInvalidationHash project;
|
||||
key = getProjectKey project;
|
||||
resolved = isResolved self;
|
||||
translator = project.translator or (l.head project.translators);
|
||||
translator =
|
||||
if
|
||||
(project ? translator)
|
||||
&& l.any (t: project.translator == t) project.translators
|
||||
then project.translator
|
||||
else l.head project.translators;
|
||||
};
|
||||
in
|
||||
self))
|
||||
|
Loading…
Reference in New Issue
Block a user