summary refs log tree commit diff
path: root/pkgs/data/fonts/oldsindhi
diff options
context:
space:
mode:
authorMathnerd314 <mathnerd314.gph+hs@gmail.com>2020-05-15 17:47:49 -0600
committerMathnerd314 <mathnerd314.gph+hs@gmail.com>2020-05-16 13:05:55 -0600
commit26cbda79292f229e703b75e307729f8f711e97da (patch)
tree6e0ba166e585c1cefbf3f89f9df6a7a28169557c /pkgs/data/fonts/oldsindhi
parent49436a7613b6412111322bc20b5602c10dae9fd3 (diff)
downloadnixpkgs-26cbda79292f229e703b75e307729f8f711e97da.tar
nixpkgs-26cbda79292f229e703b75e307729f8f711e97da.tar.gz
nixpkgs-26cbda79292f229e703b75e307729f8f711e97da.tar.bz2
nixpkgs-26cbda79292f229e703b75e307729f8f711e97da.tar.lz
nixpkgs-26cbda79292f229e703b75e307729f8f711e97da.tar.xz
nixpkgs-26cbda79292f229e703b75e307729f8f711e97da.tar.zst
nixpkgs-26cbda79292f229e703b75e307729f8f711e97da.zip
oldsindshi: 0.1 -> 1.0
Diffstat (limited to 'pkgs/data/fonts/oldsindhi')
-rw-r--r--pkgs/data/fonts/oldsindhi/default.nix17
1 files changed, 8 insertions, 9 deletions
diff --git a/pkgs/data/fonts/oldsindhi/default.nix b/pkgs/data/fonts/oldsindhi/default.nix
index fbca0283d23..e0e783fd80a 100644
--- a/pkgs/data/fonts/oldsindhi/default.nix
+++ b/pkgs/data/fonts/oldsindhi/default.nix
@@ -1,26 +1,25 @@
-{ lib, fetchzip, p7zip }:
+{ lib, fetchzip }:
 
 let
-  version = "0.1";
+  version = "1.0";
 in fetchzip rec {
   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 = ''
-    ${p7zip}/bin/7z x $downloadedFile
-
-    install -m444 -Dt $out/share/fonts/truetype OldSindhi/*.ttf
-    install -m444 -Dt $out/share/doc/${name}    OldSindhi/README OldSindhi/*.txt
+    tar -xJf $downloadedFile --strip-components=1
+    install -m444 -Dt $out/share/fonts/truetype *.ttf
+    install -m444 -Dt $out/share/doc/${name} README *.txt
   '';
 
-  sha256 = "0d4l9cg2vmh2pvnqsla8mgcwvc7wjxzcabhlli6633h3ifj2yp7b";
+  sha256 = "03c483vbrwz2fpdfbys42fmik9788zxfmjmc4fgq4s2d0mraa0j1";
 
   meta = with lib; {
     homepage = "https://github.com/MihailJP/oldsindhi";
     description = "Free Sindhi Khudabadi font";
     maintainers = with maintainers; [ mathnerd314 ];
-    license = licenses.bsd2;
+    license = with licenses; [mit ofl];
     platforms = platforms.all;
   };
 }