about summary refs log tree commit diff
path: root/pkgs/data/fonts/atkinson-hyperlegible
diff options
context:
space:
mode:
authorZhaofeng Li <hello@zhaofeng.li>2022-09-08 14:55:32 -0600
committerZhaofeng Li <hello@zhaofeng.li>2022-09-08 14:55:32 -0600
commit834287523c5df0ba0fc6e8f162209f6d48e52060 (patch)
tree2a4bcd073fa7e2d3734c429870bd2f49272af529 /pkgs/data/fonts/atkinson-hyperlegible
parent6d6b935b0d9e0d4811254857b2be389af5146e45 (diff)
atkinson-hyperlegible: Fix build
Fallout from #173430.
Diffstat (limited to 'pkgs/data/fonts/atkinson-hyperlegible')
-rw-r--r--pkgs/data/fonts/atkinson-hyperlegible/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/data/fonts/atkinson-hyperlegible/default.nix b/pkgs/data/fonts/atkinson-hyperlegible/default.nix
index ef7425e12e49a..8b2b04553726a 100644
--- a/pkgs/data/fonts/atkinson-hyperlegible/default.nix
+++ b/pkgs/data/fonts/atkinson-hyperlegible/default.nix
@@ -12,8 +12,10 @@ in fetchFromGitHub {
   sha256 = "sha256-urSTqC3rfDRM8IMG+edwKEe7NPiTuDZph3heGHzLDks=";
 
   postFetch = ''
-    tar xf $downloadedFile --strip=1
-    install -Dm644 -t $out/share/fonts/opentype fonts/otf/*
+    install -Dm644 -t $out/share/fonts/opentype $out/fonts/otf/*
+    shopt -s extglob dotglob
+    rm -rf $out/!(share)
+    shopt -u extglob dotglob
   '';
 
   meta = with lib; {