nur-packages

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

base.nix (633B)


      1 {
      2   lib,
      3   stdenvNoCC,
      4   fetchurl,
      5   lang,
      6   version,
      7   hash,
      8 }:
      9 
     10 stdenvNoCC.mkDerivation {
     11   pname = "freedict-${lang}";
     12   inherit version;
     13 
     14   src = fetchurl {
     15     url = "https://download.freedict.org/dictionaries/${lang}/${version}/freedict-${lang}-${version}.dictd.tar.xz";
     16     inherit hash;
     17   };
     18 
     19   installPhase = ''
     20     install -Dm644 **.{dict.dz,index} -t $out
     21   '';
     22 
     23   preferLocalBuild = true;
     24 
     25   meta = {
     26     description = "FreeDict (${lang})";
     27     homepage = "https://freedict.org";
     28     license = lib.licenses.free;
     29     maintainers = [ lib.maintainers.sikmir ];
     30     platforms = lib.platforms.all;
     31     skip.ci = true;
     32   };
     33 }