Hunspell: add wrapper to include dictionaries

use like this:
(hunspellWithDicts (with hunspellDicts; [en-us en-gb-ise]))
wip/yesman
Simon Vandel Sillesen 8 years ago
parent 77f8f35d57
commit b34b05b3b8
  1. 13
      pkgs/development/libraries/hunspell/wrapper.nix
  2. 2
      pkgs/top-level/all-packages.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;
}

@ -6856,6 +6856,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…
Cancel
Save