2017-08-11 05:57:52 +02:00
|
|
|
{ stdenv, fetchzip, p7zip }:
|
2015-10-18 21:06:04 +02:00
|
|
|
|
2017-08-11 05:57:52 +02:00
|
|
|
let
|
2015-10-18 21:06:04 +02:00
|
|
|
version = "1.2";
|
2017-08-11 05:57:52 +02:00
|
|
|
in fetchzip rec {
|
|
|
|
name = "marathi-cursive-${version}";
|
2015-10-18 21:06:04 +02:00
|
|
|
|
2017-08-11 05:57:52 +02:00
|
|
|
url = "https://github.com/MihailJP/MarathiCursive/releases/download/${version}/MarathiCursive-${version}.7z";
|
2015-10-18 21:06:04 +02:00
|
|
|
|
2017-08-11 05:57:52 +02:00
|
|
|
postFetch = ''
|
|
|
|
${p7zip}/bin/7z x $downloadedFile
|
|
|
|
cd MarathiCursive
|
2015-10-18 21:06:04 +02:00
|
|
|
|
|
|
|
mkdir -p $out/share/fonts/marathi-cursive
|
|
|
|
cp -v *.otf *.ttf $out/share/fonts/marathi-cursive
|
|
|
|
mkdir -p $out/share/doc/${name}
|
|
|
|
cp -v README *.txt $out/share/doc/${name}
|
|
|
|
'';
|
|
|
|
|
2017-08-11 05:57:52 +02:00
|
|
|
sha256 = "0fhz2ixrkm523qlx5pnwyzxgb1cfiiwrhls98xg8a5l3sypn1g8v";
|
|
|
|
|
2015-10-18 21:06:04 +02:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-11 05:57:52 +02:00
|
|
|
homepage = https://github.com/MihailJP/MarathiCursive;
|
2015-10-18 21:06:04 +02:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|