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/cz.nix | 22 ++++++++++++++++++++++ pkgs/stardict/de-cz.nix | 23 +++++++++++++++++++++++ pkgs/stardict/en-cz.nix | 23 +++++++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 pkgs/stardict/cz.nix create mode 100644 pkgs/stardict/de-cz.nix create mode 100644 pkgs/stardict/en-cz.nix (limited to 'pkgs/stardict') diff --git a/pkgs/stardict/cz.nix b/pkgs/stardict/cz.nix new file mode 100644 index 0000000..7b4eeb0 --- /dev/null +++ b/pkgs/stardict/cz.nix @@ -0,0 +1,22 @@ +{ lib, stdenvNoCC, fetchurl }: + +stdenvNoCC.mkDerivation rec { + pname = "stardict-cz"; + version = "20171101"; + + src = fetchurl { + url = "https://dl.cihar.com/slovnik/stable/stardict-czech-${version}.tar.gz"; + sha256 = "14kch0cms3d77js2kyx7risadlzk3waig22gch59qp9y86b9w0zz"; + }; + + installPhase = '' + mkdir -p $out/usr/share/stardict/dic + cp czech-cizi.* $out/usr/share/stardict/dic/ + ''; + + meta = with lib; { + description = "Czech dictionary of foreign words for stardict"; + homepage = "http://slovnik.zcu.cz/"; + license = licenses.gpl3; + }; +} diff --git a/pkgs/stardict/de-cz.nix b/pkgs/stardict/de-cz.nix new file mode 100644 index 0000000..8ef3923 --- /dev/null +++ b/pkgs/stardict/de-cz.nix @@ -0,0 +1,23 @@ +{ lib, stdenvNoCC, fetchurl }: + +stdenvNoCC.mkDerivation rec { + pname = "stardict-de-cz"; + version = "20200501"; + + src = fetchurl { + url = "http://dl.cihar.com/slovnik/stable/stardict-german-czech-${version}.tar.gz"; + sha256 = "1d91pmflaz9zgblalk9b2ib6idj6akm64wvslmzsydwn738n6va2"; + }; + + installPhase = '' + mkdir -p $out/usr/share/stardict/dic + cp czech-german.* $out/usr/share/stardict/dic/ + cp german-czech.* $out/usr/share/stardict/dic/ + ''; + + meta = with lib; { + description = "GNU/FDL German-Czech dictionary for StarDict"; + homepage = "http://slovnik.zcu.cz/"; + license = licenses.gpl3; + }; +} 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