Merge pull request #87925 from Mathnerd314/fonts-update

OldSindhi / MarathiCursive Fonts update
This commit is contained in:
Florian Klink 2020-05-16 21:08:56 +02:00 committed by GitHub
commit 5b82ec90ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 17 deletions

View File

@ -1,21 +1,19 @@
{ lib, fetchzip, p7zip }: { lib, fetchzip }:
let let
version = "1.2"; version = "2.0";
in fetchzip rec { in fetchzip rec {
name = "marathi-cursive-${version}"; name = "marathi-cursive-${version}";
url = "https://github.com/MihailJP/MarathiCursive/releases/download/${version}/MarathiCursive-${version}.7z"; url = "https://github.com/MihailJP/MarathiCursive/releases/download/v${version}/MarathiCursive-${version}.tar.xz";
postFetch = '' postFetch = ''
${p7zip}/bin/7z x $downloadedFile tar -xJf $downloadedFile --strip-components=1
cd MarathiCursive
install -m444 -Dt $out/share/fonts/marathi-cursive *.otf *.ttf install -m444 -Dt $out/share/fonts/marathi-cursive *.otf *.ttf
install -m444 -Dt $out/share/doc/${name} README *.txt install -m444 -Dt $out/share/doc/${name} README *.txt
''; '';
sha256 = "0wq4w79x8r5w6ikm9amcmapf0jcdgifs9zf1pbnw3fk4ncz5s551"; sha256 = "17pj60ajnjghxhxka8a046mz6vfwr79wnby7xd6pg5hgncin2hgg";
meta = with lib; { meta = with lib; {
homepage = "https://github.com/MihailJP/MarathiCursive"; homepage = "https://github.com/MihailJP/MarathiCursive";

View File

@ -1,26 +1,25 @@
{ lib, fetchzip, p7zip }: { lib, fetchzip }:
let let
version = "0.1"; version = "1.0";
in fetchzip rec { in fetchzip rec {
name = "oldsindhi-${version}"; name = "oldsindhi-${version}";
url = "https://github.com/MihailJP/oldsindhi/releases/download/0.1/OldSindhi-0.1.7z"; url = "https://github.com/MihailJP/oldsindhi/releases/download/v${version}/OldSindhi-${version}.tar.xz";
postFetch = '' postFetch = ''
${p7zip}/bin/7z x $downloadedFile tar -xJf $downloadedFile --strip-components=1
install -m444 -Dt $out/share/fonts/truetype *.ttf
install -m444 -Dt $out/share/fonts/truetype OldSindhi/*.ttf install -m444 -Dt $out/share/doc/${name} README *.txt
install -m444 -Dt $out/share/doc/${name} OldSindhi/README OldSindhi/*.txt
''; '';
sha256 = "0d4l9cg2vmh2pvnqsla8mgcwvc7wjxzcabhlli6633h3ifj2yp7b"; sha256 = "03c483vbrwz2fpdfbys42fmik9788zxfmjmc4fgq4s2d0mraa0j1";
meta = with lib; { meta = with lib; {
homepage = "https://github.com/MihailJP/oldsindhi"; homepage = "https://github.com/MihailJP/oldsindhi";
description = "Free Sindhi Khudabadi font"; description = "Free Sindhi Khudabadi font";
maintainers = with maintainers; [ mathnerd314 ]; maintainers = with maintainers; [ mathnerd314 ];
license = licenses.bsd2; license = with licenses; [mit ofl];
platforms = platforms.all; platforms = platforms.all;
}; };
} }