3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #12752 from simonvandel/hunspellWithDicts

Hunspell: add wrapper to include dictionaries
This commit is contained in:
joachifm 2016-03-05 13:26:43 +00:00
commit 932b47ff52
2 changed files with 15 additions and 0 deletions

View 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;
}

View file

@ -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 { };