about summary refs log tree commit diff
path: root/pkgs/development/libraries/hspell/dicts.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/hspell/dicts.nix')
-rw-r--r--pkgs/development/libraries/hspell/dicts.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/libraries/hspell/dicts.nix b/pkgs/development/libraries/hspell/dicts.nix
index 06f80bf5cf22..e11cbbce3336 100644
--- a/pkgs/development/libraries/hspell/dicts.nix
+++ b/pkgs/development/libraries/hspell/dicts.nix
@@ -1,4 +1,4 @@
-{ stdenv, hspell }:
+{ lib, stdenv, hspell }:
 
 let
   dict = variant: a: stdenv.mkDerivation ({
@@ -8,7 +8,7 @@ let
     meta = hspell.meta // {
       broken = true;
       description = "${variant} Hebrew dictionary";
-    } // (if a ? meta then a.meta else {});
+    } // (lib.optionalAttrs (a ? meta) a.meta);
   } // (removeAttrs a ["meta"]));
 in
 {