diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/hunspell/wrapper.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/hunspell/wrapper.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/hunspell/wrapper.nix b/nixpkgs/pkgs/development/libraries/hunspell/wrapper.nix new file mode 100644 index 000000000000..34c3d26c55ec --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/hunspell/wrapper.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}/bin/hunspell $out/bin/hunspell --prefix DICPATH : ${searchPath} + ''; + meta = removeAttrs hunspell.meta ["outputsToInstall"]; +} |