aboutsummaryrefslogtreecommitdiff
path: root/pkgs/stardict/cz.nix
blob: 2df19bc3c62e124dc03a9815b5d32b8b1ba6c17e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  lib,
  stdenvNoCC,
  fetchurl,
}:
stdenvNoCC.mkDerivation (attrs: {
  pname = "stardict-cz";
  version = "20171101";

  src = fetchurl {
    url = "https://dl.cihar.com/slovnik/stable/stardict-czech-${attrs.version}.tar.gz";
    hash = "sha256-/wOelkE+XZwKZE+IFxUf89OmdMyn+ym0PKcNXRmAbJI=";
  };

  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;
  };
})