1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 05:31:22 +00:00
nixpkgs/pkgs/development/libraries/hunspell/wrapper.nix
Simon Vandel Sillesen b34b05b3b8 Hunspell: add wrapper to include dictionaries
use like this:
(hunspellWithDicts (with hunspellDicts; [en-us en-gb-ise]))
2016-02-01 18:44:20 +01:00

13 lines
376 B
Nix

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