2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "marathi-cursive";
|
|
|
|
version = "2.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/MihailJP/MarathiCursive/releases/download/v${version}/MarathiCursive-${version}.tar.xz";
|
|
|
|
hash = "sha256-C/z8ALV9bht0SaYqACO5ulSVCk1d6wBwvpVC4ZLgtek=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
install -m444 -Dt $out/share/fonts/marathi-cursive *.otf *.ttf
|
2023-02-02 18:25:31 +00:00
|
|
|
install -m444 -Dt $out/share/doc/${pname}-${version} README *.txt
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|