From 5ec374830995b705cae116ea14e6190f8c4d3a29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 22 Jun 2022 15:54:04 +0200 Subject: Add sdcv and stardict dictionaries --- pkgs/stardict/en-cz.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pkgs/stardict/en-cz.nix (limited to 'pkgs/stardict/en-cz.nix') diff --git a/pkgs/stardict/en-cz.nix b/pkgs/stardict/en-cz.nix new file mode 100644 index 0000000..353334c --- /dev/null +++ b/pkgs/stardict/en-cz.nix @@ -0,0 +1,23 @@ +{ lib, stdenvNoCC, fetchurl }: + +stdenvNoCC.mkDerivation rec { + pname = "stardict-en-cz"; + version = "20210401"; + + src = fetchurl { + url = "http://dl.cihar.com/slovnik/stable/stardict-english-czech-${version}.tar.gz"; + sha256 = "1rh2ybqwzw258g4d4aydc587mbqqq7m7fzkxq9kf3b7x9xqzx6ia"; + }; + + installPhase = '' + mkdir -p $out/usr/share/stardict/dic + cp czech-english.* $out/usr/share/stardict/dic/ + cp english-czech.* $out/usr/share/stardict/dic/ + ''; + + meta = with lib; { + description = "GNU/FDL English-Czech dictionary for StarDict"; + homepage = "http://slovnik.zcu.cz/"; + license = licenses.gpl3; + }; +} -- cgit v1.2.3