summary refs log blame commit diff
path: root/pkgs/data/fonts/marathi-cursive/default.nix
blob: 60c77dddc8dd3d85996ce06c3c10688390d27a7b (plain) (tree)
1
2
3
4
5
6
7
8
9
                         
 
   
                  

                                      
 
                                                                                                               
 


                                     
 

                                                                   

     
                                                                  
 
                    
                                                          





                                                                        
{ lib, fetchzip, p7zip }:

let
  version = "1.2";
in fetchzip rec {
  name = "marathi-cursive-${version}";

  url = "https://github.com/MihailJP/MarathiCursive/releases/download/${version}/MarathiCursive-${version}.7z";

  postFetch = ''
    ${p7zip}/bin/7z x $downloadedFile
    cd MarathiCursive

    install -m444 -Dt $out/share/fonts/marathi-cursive *.otf *.ttf
    install -m444 -Dt $out/share/doc/${name}           README *.txt
  '';

  sha256 = "0wq4w79x8r5w6ikm9amcmapf0jcdgifs9zf1pbnw3fk4ncz5s551";

  meta = with lib; {
    homepage = https://github.com/MihailJP/MarathiCursive;
    description = "Modi script font with Graphite and OpenType support";
    maintainers = with maintainers; [ mathnerd314 ];
    license = licenses.mit; # It's the M+ license, M+ is MIT(-ish)
    platforms = platforms.all;
  };
}