Hunspell: add wrapper to include dictionaries
use like this: (hunspellWithDicts (with hunspellDicts; [en-us en-gb-ise]))
This commit is contained in:
parent
77f8f35d57
commit
b34b05b3b8
13
pkgs/development/libraries/hunspell/wrapper.nix
Normal file
13
pkgs/development/libraries/hunspell/wrapper.nix
Normal file
@ -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;
|
||||||
|
}
|
@ -6856,6 +6856,8 @@ let
|
|||||||
|
|
||||||
hunspellDicts = recurseIntoAttrs (callPackages ../development/libraries/hunspell/dictionaries.nix {});
|
hunspellDicts = recurseIntoAttrs (callPackages ../development/libraries/hunspell/dictionaries.nix {});
|
||||||
|
|
||||||
|
hunspellWithDicts = dicts: callPackage ../development/libraries/hunspell/wrapper.nix { inherit dicts; };
|
||||||
|
|
||||||
hwloc = callPackage ../development/libraries/hwloc {};
|
hwloc = callPackage ../development/libraries/hwloc {};
|
||||||
|
|
||||||
hydraAntLogger = callPackage ../development/libraries/java/hydra-ant-logger { };
|
hydraAntLogger = callPackage ../development/libraries/java/hydra-ant-logger { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user