lol
1{ stdenv, fetchurl, p7zip }:
2
3stdenv.mkDerivation rec {
4 name = "marathi-cursive-${version}";
5 version = "1.2";
6
7 src = fetchurl {
8 url = "https://github.com/MihailJP/MarathiCursive/releases/download/${version}/MarathiCursive-${version}.7z";
9 sha256 = "0zhqkkfkz5mhfz8xv305s16h80p9v1iva829fznxd2c44ngyplmc";
10 };
11
12 buildInputs = [ p7zip ];
13
14 unpackCmd = "7z x $curSrc";
15
16 installPhase = ''
17 mkdir -p $out/share/fonts/marathi-cursive
18 cp -v *.otf *.ttf $out/share/fonts/marathi-cursive
19 mkdir -p $out/share/doc/${name}
20 cp -v README *.txt $out/share/doc/${name}
21 '';
22
23 meta = with stdenv.lib; {
24 homepage = https://github.com/MihailJP/marathi-cursive;
25 description = "Modi script font with Graphite and OpenType support";
26 maintainers = with maintainers; [ mathnerd314 ];
27 license = licenses.mit; # It's the M+ license, M+ is MIT(-ish)
28 platforms = platforms.all;
29 };
30}