diff options
author | Simon Vandel Sillesen <simon.vandel@gmail.com> | 2016-02-01 18:44:20 +0100 |
---|---|---|
committer | Simon Vandel Sillesen <simon.vandel@gmail.com> | 2016-02-01 18:44:20 +0100 |
commit | b34b05b3b8ca274da28184371382d683100a806c (patch) | |
tree | d819126d6bf9bf92300f6ccdc1a8b41d734b68bd /pkgs/development/libraries/hunspell | |
parent | 77f8f35d57618c1ba456d968524f2fb2c3448295 (diff) | |
download | nixpkgs-b34b05b3b8ca274da28184371382d683100a806c.tar nixpkgs-b34b05b3b8ca274da28184371382d683100a806c.tar.gz nixpkgs-b34b05b3b8ca274da28184371382d683100a806c.tar.bz2 nixpkgs-b34b05b3b8ca274da28184371382d683100a806c.tar.lz nixpkgs-b34b05b3b8ca274da28184371382d683100a806c.tar.xz nixpkgs-b34b05b3b8ca274da28184371382d683100a806c.tar.zst nixpkgs-b34b05b3b8ca274da28184371382d683100a806c.zip |
Hunspell: add wrapper to include dictionaries
use like this: (hunspellWithDicts (with hunspellDicts; [en-us en-gb-ise]))
Diffstat (limited to 'pkgs/development/libraries/hunspell')
-rw-r--r-- | pkgs/development/libraries/hunspell/wrapper.nix | 13 |
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 |