summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMathnerd314 <mathnerd314.gph+hs@gmail.com>2020-05-15 17:47:33 -0600
committerMathnerd314 <mathnerd314.gph+hs@gmail.com>2020-05-16 13:05:55 -0600
commit49436a7613b6412111322bc20b5602c10dae9fd3 (patch)
tree9ed669ca6dccd52f2c68187236c517c1963a7e7b /pkgs
parent82263944a73ed7526e623bac9be69a811e335c86 (diff)
downloadnixpkgs-49436a7613b6412111322bc20b5602c10dae9fd3.tar
nixpkgs-49436a7613b6412111322bc20b5602c10dae9fd3.tar.gz
nixpkgs-49436a7613b6412111322bc20b5602c10dae9fd3.tar.bz2
nixpkgs-49436a7613b6412111322bc20b5602c10dae9fd3.tar.lz
nixpkgs-49436a7613b6412111322bc20b5602c10dae9fd3.tar.xz
nixpkgs-49436a7613b6412111322bc20b5602c10dae9fd3.tar.zst
nixpkgs-49436a7613b6412111322bc20b5602c10dae9fd3.zip
marathi-cursive: 1.2 -> 2.0
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/data/fonts/marathi-cursive/default.nix14
1 files changed, 6 insertions, 8 deletions
diff --git a/pkgs/data/fonts/marathi-cursive/default.nix b/pkgs/data/fonts/marathi-cursive/default.nix
index 724d975e53a..8c228fd91a7 100644
--- a/pkgs/data/fonts/marathi-cursive/default.nix
+++ b/pkgs/data/fonts/marathi-cursive/default.nix
@@ -1,21 +1,19 @@
-{ lib, fetchzip, p7zip }:
+{ lib, fetchzip }:
 
 let
-  version = "1.2";
+  version = "2.0";
 in fetchzip rec {
   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 = ''
-    ${p7zip}/bin/7z x $downloadedFile
-    cd MarathiCursive
-
+    tar -xJf $downloadedFile --strip-components=1
     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; {
     homepage = "https://github.com/MihailJP/MarathiCursive";