summary refs log blame commit diff
path: root/pkgs/development/libraries/hunspell/wrapper.nix
blob: 4ae1772327511ed9dba3c32dfa44e29c520fef2e (plain) (tree)
1
2
3
4
5
6
7
8
9






                                                     
                                      
                   
                                                                                               
     

                                                        
{ stdenv, lib, hunspell, makeWrapper, dicts ? [] }:
with lib;
let
  searchPath = makeSearchPath "share/hunspell" dicts;
in
stdenv.mkDerivation {
  name = (appendToName "with-dicts" hunspell).name;
  nativeBuildInputs = [ makeWrapper ];
  buildCommand = ''
    makeWrapper ${hunspell.bin}/bin/hunspell $out/bin/hunspell --prefix DICPATH : ${searchPath}
  '';
  meta = removeAttrs hunspell.meta ["outputsToInstall"];
}