git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #12752 from simonvandel/hunspellWithDicts

Hunspell: add wrapper to include dictionaries

commit932b47ff522ad7f1e69b77758157ea16654c90f6 authorjoachifm <joachifm@users.noreply.github.com> dateSat 5 Mar 2016, 13:26 (11 years ago) parent02327d3b34b05b
2 files changed+15
pkgs/development/libraries/hunspell/wrapper.nix+13 pkgs/top-level/all-packages.nix+2
pkgs/development/libraries/hunspell/wrapper.nixnew file+13
@@ -0,0 +1,13 @@
1+{ stdenv, lib, hunspell, makeWrapper, dicts ? [] }:
2+with lib;
3+let
4+ searchPath = makeSearchPath "share/hunspell" dicts;
5+in
6+stdenv.mkDerivation {
7+ name = (appendToName "with-dicts" hunspell).name;
8+ buildInputs = [ makeWrapper ];
9+ buildCommand = ''
10+ makeWrapper ${hunspell}/bin/hunspell $out/bin/hunspell --prefix DICPATH : ${searchPath}
11+ '';
12+ inherit (hunspell) meta;
13+}
pkgs/top-level/all-packages.nix+2
@@ -7096,6 +7096,8 @@ let
70967096
70977097 hunspellDicts = recurseIntoAttrs (callPackages ../development/libraries/hunspell/dictionaries.nix {});
70987098
7099+ hunspellWithDicts = dicts: callPackage ../development/libraries/hunspell/wrapper.nix { inherit dicts; };
7100+
70997101 hwloc = callPackage ../development/libraries/hwloc {};
71007102
71017103 hydraAntLogger = callPackage ../development/libraries/java/hydra-ant-logger { };