forked from mirrors/nixpkgs
Merge pull request #12752 from simonvandel/hunspellWithDicts
Hunspell: add wrapper to include dictionaries
This commit is contained in:
commit
932b47ff52
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;
|
||||
}
|
|
@ -7096,6 +7096,8 @@ let
|
|||
|
||||
hunspellDicts = recurseIntoAttrs (callPackages ../development/libraries/hunspell/dictionaries.nix {});
|
||||
|
||||
hunspellWithDicts = dicts: callPackage ../development/libraries/hunspell/wrapper.nix { inherit dicts; };
|
||||
|
||||
hwloc = callPackage ../development/libraries/hwloc {};
|
||||
|
||||
hydraAntLogger = callPackage ../development/libraries/java/hydra-ant-logger { };
|
||||
|
|
Loading…
Reference in a new issue