Merge pull request #12752 from simonvandel/hunspellWithDicts
Hunspell: add wrapper to include dictionaries
This commit is contained in:
commit
932b47ff52
|
@ -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;
|
||||||
|
}
|
|
@ -7096,6 +7096,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…
Reference in New Issue