about summary refs log tree commit diff
path: root/pkgs/data
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-12-05 06:24:57 +0100
committerGitHub <noreply@github.com>2021-12-05 06:24:57 +0100
commitd515e4c053379b53b564f5d4cf8a7ce198105d42 (patch)
treec2acad0be3c58cabca6f028b433722a72971cfdd /pkgs/data
parent2fcd2b35bb509fa3724b6e3f7c833b717d06f520 (diff)
parent7dcc14f57b7d0975056722b6860a6e7ae152ab81 (diff)
Merge pull request #148573 from ivan-timokhin/junicode-1.003
Diffstat (limited to 'pkgs/data')
-rw-r--r--pkgs/data/fonts/junicode/default.nix20
1 files changed, 12 insertions, 8 deletions
diff --git a/pkgs/data/fonts/junicode/default.nix b/pkgs/data/fonts/junicode/default.nix
index 19502cdf78fda..5f5ce1048c5e1 100644
--- a/pkgs/data/fonts/junicode/default.nix
+++ b/pkgs/data/fonts/junicode/default.nix
@@ -1,22 +1,26 @@
-{ lib, fetchzip }:
+{ lib, fetchFromGitHub }:
 
 let
   pname = "junicode";
-  version = "1.002";
-in fetchzip {
+  version = "1.003";
+in
+fetchFromGitHub {
   name = "${pname}-${version}";
 
-  url = "mirror://sourceforge/junicode/junicode/junicode-${version}/junicode-${version}.zip";
+  owner = "psb1558";
+  repo = "Junicode-font";
+  rev = "55d816d91a5e19795d9b66edec478379ee2b9ddb";
 
   postFetch = ''
-    mkdir -p $out/share/fonts
-    unzip -j $downloadedFile \*.ttf -d $out/share/fonts/junicode-ttf
+    local out_ttf=$out/share/fonts/junicode-ttf
+    mkdir -p $out_ttf
+    tar -f $downloadedFile -C $out_ttf --wildcards -x '*.ttf' --strip=2
   '';
 
-  sha256 = "1n170gw41lr0zr5958z5cgpg6i1aa7kj7iq9s6gdh1cqq7hhgd08";
+  sha256 = "1v334gljmidh58kmrarz5pf348b0ac7vh25f1xs3gyvn78khh5nw";
 
   meta = {
-    homepage = "http://junicode.sourceforge.net/";
+    homepage = "https://github.com/psb1558/Junicode-font";
     description = "A Unicode font for medievalists";
     maintainers = with lib.maintainers; [ ivan-timokhin ];
     license = lib.licenses.ofl;