summary refs log tree commit diff
path: root/pkgs/data/fonts/liberastika
diff options
context:
space:
mode:
authorArtturi <Artturin@artturin.com>2022-05-30 22:57:37 +0300
committerGitHub <noreply@github.com>2022-05-30 22:57:37 +0300
commit63cbdf67ae20521d26e34aae181bc1eea3ec8588 (patch)
treed232f97ebb668f49dc57b149a783c37dd2a3dff9 /pkgs/data/fonts/liberastika
parente47fff26cc89000efc72fb66aabda84b75218657 (diff)
fix font fallout from extraPostFetch -> postFetch (#175381)
* gdouros-fonts: fix build

some hashes were changed since ods files are now installed

* camingo-code: fix build

contents not changed

* hannom: fix build

* helvetica-neue-lt-std: fix build

perms changed so the hash changed too

* liberastika: fix build

hash changed due to no doc dir anymore

* kochi-substitute-naga10: fix build

* xkcd-font: use a simpler method to remove unneeded files

* fonts: also remove hidden files
Diffstat (limited to 'pkgs/data/fonts/liberastika')
-rw-r--r--pkgs/data/fonts/liberastika/default.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/data/fonts/liberastika/default.nix b/pkgs/data/fonts/liberastika/default.nix
index c42bc9f756327..26420ab9e6ed9 100644
--- a/pkgs/data/fonts/liberastika/default.nix
+++ b/pkgs/data/fonts/liberastika/default.nix
@@ -7,13 +7,17 @@ in fetchzip rec {
 
   url = "mirror://sourceforge/project/lib-ka/liberastika-ttf-${version}.zip";
 
+  stripRoot = false;
+
   postFetch = ''
-    mkdir -p $out/share/{doc,fonts}
-    unzip -j $downloadedFile \*.ttf                           -d $out/share/fonts/truetype
-    unzip -j $downloadedFile AUTHORS ChangeLog COPYING README -d "$out/share/doc/${name}"
+    mkdir -p $out/share/fonts
+    install -Dm644 $out/*.ttf -t $out/share/fonts/truetype
+    shopt -s extglob dotglob
+    rm -rf $out/!(share)
+    shopt -u extglob dotglob
   '';
 
-  sha256 = "1a9dvl1pzch2vh8sqyyn1d1wz4n624ffazl6hzlc3s5k5lzrb6jp";
+  sha256 = "sha256-1hoETOjPRUIzzM+NUR+g/Ph16jXmH2ARSlZHjgEwoeM=";
 
   meta = with lib; {
     description = "Liberation Sans fork with improved cyrillic support";