From 43a3f5f69d9515527d484c8b417de625970e4fd2 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 11 Jan 2022 21:38:08 +0100 Subject: tv stardict: add swahili --- tv/5pkgs/simple/stardict/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tv') diff --git a/tv/5pkgs/simple/stardict/default.nix b/tv/5pkgs/simple/stardict/default.nix index e835caedb..2135cc056 100644 --- a/tv/5pkgs/simple/stardict/default.nix +++ b/tv/5pkgs/simple/stardict/default.nix @@ -112,6 +112,15 @@ let stripRoot = false; }; }; + + swahiliDictionaries = { + vickio = pkgs.fetchzip { + url = "http://swahili.vickio.net/files/Swahili-English.zip"; + sha256 = "0m6wkwc83fcim43ijn17lcsda4clkra587gxaz6m59qd0yfwzakw"; + stripRoot = false; + }; + }; + makeStardictDataDir = dicts: pkgs.linkFarm "dictionaries" (lib.mapAttrsToList (name: path: { inherit name path; }) dicts); sdcvPager = pkgs.writeDash "sdcvPager" '' @@ -220,6 +229,7 @@ pkgs.symlinkJoin { paths = [ (mkDictBin "sd-classics" classicsDictionaries) (mkDictBin "sd-sanskrit" sanskritDictionaries) + (mkDictBin "sd-swahili" swahiliDictionaries) (mkDictBin "sd" englishGermanDictionaries) ]; } -- cgit v1.2.3