nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (721B)


      1 {
      2   lib,
      3   stdenvNoCC,
      4   fetchurl,
      5 }:
      6 
      7 let
      8   dicts = lib.mapAttrs (
      9     name: spec:
     10     fetchurl {
     11       url = "http://libredict.org/dictionaries/${name}/wiktionary_${name}_stardict_${spec.version}.tgz";
     12       inherit (spec) hash;
     13     }
     14   ) (lib.importJSON ./dicts.json);
     15 in
     16 stdenvNoCC.mkDerivation {
     17   pname = "libredict";
     18   version = "2023-05-20";
     19 
     20   srcs = lib.attrValues dicts;
     21   sourceRoot = ".";
     22 
     23   installPhase = ''
     24     mkdir -p $out
     25     mv Wiktionary* $out
     26   '';
     27 
     28   meta = {
     29     description = "Wiktionary dictionaries for StarDict";
     30     homepage = "http://libredict.org";
     31     license = lib.licenses.free;
     32     maintainers = [ lib.maintainers.sikmir ];
     33     platforms = lib.platforms.all;
     34     skip.ci = true;
     35   };
     36 }