@@ -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}