summary refs log tree commit diff
path: root/pkgs/development/libraries/hunspell
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/hunspell')
-rw-r--r--pkgs/development/libraries/hunspell/wrapper.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/development/libraries/hunspell/wrapper.nix b/pkgs/development/libraries/hunspell/wrapper.nix
new file mode 100644
index 00000000000..88f18e6283d
--- /dev/null
+++ b/pkgs/development/libraries/hunspell/wrapper.nix
@@ -0,0 +1,13 @@
+{ stdenv, lib, hunspell, makeWrapper, dicts ? [] }:
+with lib;
+let
+  searchPath = makeSearchPath "share/hunspell" dicts;
+in
+stdenv.mkDerivation {
+  name = (appendToName "with-dicts" hunspell).name;
+  buildInputs = [ makeWrapper ];
+  buildCommand = ''
+    makeWrapper ${hunspell}/bin/hunspell $out/bin/hunspell --prefix DICPATH : ${searchPath}
+  '';
+  inherit (hunspell) meta;
+}
\ No newline at end of file