1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

Hunspell: add wrapper to include dictionaries

use like this:
(hunspellWithDicts (with hunspellDicts; [en-us en-gb-ise]))
This commit is contained in:
Simon Vandel Sillesen 2016-02-01 18:44:20 +01:00
parent 77f8f35d57
commit b34b05b3b8
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

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