Skip to content

Commit

Permalink
marathi-cursive: make the font derivation fixed-output
Browse files Browse the repository at this point in the history
- [x] homepage fixed
- [x] make the font derivation fixed-output (#27754)
  • Loading branch information
volth authored and fpletz committed Aug 11, 2017
1 parent bee42ef commit 9f11dcc
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions pkgs/data/fonts/marathi-cursive/default.nix
@@ -1,27 +1,26 @@
{ stdenv, fetchurl, p7zip }:
{ stdenv, fetchzip, p7zip }:

stdenv.mkDerivation rec {
name = "marathi-cursive-${version}";
let
version = "1.2";
in fetchzip rec {
name = "marathi-cursive-${version}";

src = fetchurl {
url = "https://github.com/MihailJP/MarathiCursive/releases/download/${version}/MarathiCursive-${version}.7z";
sha256 = "0zhqkkfkz5mhfz8xv305s16h80p9v1iva829fznxd2c44ngyplmc";
};

buildInputs = [ p7zip ];
url = "https://github.com/MihailJP/MarathiCursive/releases/download/${version}/MarathiCursive-${version}.7z";

unpackCmd = "7z x $curSrc";
postFetch = ''
${p7zip}/bin/7z x $downloadedFile
cd MarathiCursive
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}
'';

sha256 = "0fhz2ixrkm523qlx5pnwyzxgb1cfiiwrhls98xg8a5l3sypn1g8v";

meta = with stdenv.lib; {
homepage = https://github.com/MihailJP/marathi-cursive;
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)
Expand Down

0 comments on commit 9f11dcc

Please sign in to comment.