git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #87925 from Mathnerd314/fonts-update

OldSindhi / MarathiCursive Fonts update

commit5b82ec90ca511198116dc371bf4b3ea0f71ae1b0 authorFlorian Klink <flokli@flokli.de> dateSat 16 May 2020, 21:08 (7 years ago) parentccd6c7a26cbda7
2 files changed+14−17
pkgs/data/fonts/marathi-cursive/default.nix+6−8 pkgs/data/fonts/oldsindhi/default.nix+8−9
pkgs/data/fonts/marathi-cursive/default.nix+6−8
@@ -1,21 +1,19 @@
1−{ lib, fetchzip, p7zip }:
1+{ lib, fetchzip }:
22
33let
4− version = "1.2";
4+ version = "2.0";
55in fetchzip rec {
66 name = "marathi-cursive-${version}";
77
8− url = "https://github.com/MihailJP/MarathiCursive/releases/download/${version}/MarathiCursive-${version}.7z";
8+ url = "https://github.com/MihailJP/MarathiCursive/releases/download/v${version}/MarathiCursive-${version}.tar.xz";
99
1010 postFetch = ''
11− ${p7zip}/bin/7z x $downloadedFile
12− cd MarathiCursive
13−
11+ tar -xJf $downloadedFile --strip-components=1
1412 install -m444 -Dt $out/share/fonts/marathi-cursive *.otf *.ttf
15− install -m444 -Dt $out/share/doc/${name} README *.txt
13+ install -m444 -Dt $out/share/doc/${name} README *.txt
1614 '';
1715
18− sha256 = "0wq4w79x8r5w6ikm9amcmapf0jcdgifs9zf1pbnw3fk4ncz5s551";
16+ sha256 = "17pj60ajnjghxhxka8a046mz6vfwr79wnby7xd6pg5hgncin2hgg";
1917
2018 meta = with lib; {
2119 homepage = "https://github.com/MihailJP/MarathiCursive";
pkgs/data/fonts/oldsindhi/default.nix+8−9
@@ -1,26 +1,25 @@
1−{ lib, fetchzip, p7zip }:
1+{ lib, fetchzip }:
22
33let
4− version = "0.1";
4+ version = "1.0";
55in fetchzip rec {
66 name = "oldsindhi-${version}";
77
8− url = "https://github.com/MihailJP/oldsindhi/releases/download/0.1/OldSindhi-0.1.7z";
8+ url = "https://github.com/MihailJP/oldsindhi/releases/download/v${version}/OldSindhi-${version}.tar.xz";
99
1010 postFetch = ''
11− ${p7zip}/bin/7z x $downloadedFile
12−
13− install -m444 -Dt $out/share/fonts/truetype OldSindhi/*.ttf
14− install -m444 -Dt $out/share/doc/${name} OldSindhi/README OldSindhi/*.txt
11+ tar -xJf $downloadedFile --strip-components=1
12+ install -m444 -Dt $out/share/fonts/truetype *.ttf
13+ install -m444 -Dt $out/share/doc/${name} README *.txt
1514 '';
1615
17− sha256 = "0d4l9cg2vmh2pvnqsla8mgcwvc7wjxzcabhlli6633h3ifj2yp7b";
16+ sha256 = "03c483vbrwz2fpdfbys42fmik9788zxfmjmc4fgq4s2d0mraa0j1";
1817
1918 meta = with lib; {
2019 homepage = "https://github.com/MihailJP/oldsindhi";
2120 description = "Free Sindhi Khudabadi font";
2221 maintainers = with maintainers; [ mathnerd314 ];
23− license = licenses.bsd2;
22+ license = with licenses; [mit ofl];
2423 platforms = platforms.all;
2524 };
2625}