nixpkgs/pkgs/data/fonts/marathi-cursive/default.nix

30 lines
878 B
Nix
Raw Normal View History

{ stdenv, fetchzip, p7zip }:
2015-10-18 20:06:04 +01:00
let
2015-10-18 20:06:04 +01:00
version = "1.2";
in fetchzip rec {
name = "marathi-cursive-${version}";
2015-10-18 20:06:04 +01:00
url = "https://github.com/MihailJP/MarathiCursive/releases/download/${version}/MarathiCursive-${version}.7z";
2015-10-18 20:06:04 +01:00
postFetch = ''
${p7zip}/bin/7z x $downloadedFile
cd MarathiCursive
2015-10-18 20:06:04 +01: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}
'';
sha256 = "0fhz2ixrkm523qlx5pnwyzxgb1cfiiwrhls98xg8a5l3sypn1g8v";
2015-10-18 20:06:04 +01:00
meta = with stdenv.lib; {
homepage = https://github.com/MihailJP/MarathiCursive;
2015-10-18 20:06:04 +01: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;
};
}