From f15c5a66e70c2823ff2038da397b83818d27f7c4 Mon Sep 17 00:00:00 2001 From: Mathnerd314 Date: Sun, 18 Oct 2015 13:06:04 -0600 Subject: marathi-cursive: init at 1.2 --- pkgs/data/fonts/marathi-cursive/default.nix | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pkgs/data/fonts/marathi-cursive/default.nix (limited to 'pkgs/data/fonts/marathi-cursive') diff --git a/pkgs/data/fonts/marathi-cursive/default.nix b/pkgs/data/fonts/marathi-cursive/default.nix new file mode 100644 index 00000000000..e3f47cb8b0d --- /dev/null +++ b/pkgs/data/fonts/marathi-cursive/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchurl, p7zip }: + +stdenv.mkDerivation rec { + name = "marathi-cursive-${version}"; + version = "1.2"; + + src = fetchurl { + url = "https://github.com/MihailJP/MarathiCursive/releases/download/${version}/MarathiCursive-${version}.7z"; + sha256 = "0zhqkkfkz5mhfz8xv305s16h80p9v1iva829fznxd2c44ngyplmc"; + }; + + buildInputs = [ p7zip ]; + + unpackCmd = "7z x $curSrc"; + + installPhase = '' + 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} + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/MihailJP/marathi-cursive; + 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; + }; +} -- cgit 1.4.1