summary refs log tree commit diff
path: root/pkgs/data/fonts/kochi-substitute-naga10
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/kochi-substitute-naga10
parente47fff26cc89000efc72fb66aabda84b75218657 (diff)
downloadnixpkgs-63cbdf67ae20521d26e34aae181bc1eea3ec8588.tar
nixpkgs-63cbdf67ae20521d26e34aae181bc1eea3ec8588.tar.gz
nixpkgs-63cbdf67ae20521d26e34aae181bc1eea3ec8588.tar.bz2
nixpkgs-63cbdf67ae20521d26e34aae181bc1eea3ec8588.tar.lz
nixpkgs-63cbdf67ae20521d26e34aae181bc1eea3ec8588.tar.xz
nixpkgs-63cbdf67ae20521d26e34aae181bc1eea3ec8588.tar.zst
nixpkgs-63cbdf67ae20521d26e34aae181bc1eea3ec8588.zip
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/kochi-substitute-naga10')
-rw-r--r--pkgs/data/fonts/kochi-substitute-naga10/default.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/data/fonts/kochi-substitute-naga10/default.nix b/pkgs/data/fonts/kochi-substitute-naga10/default.nix
index 1b63223f0bf..63ca3cf3e43 100644
--- a/pkgs/data/fonts/kochi-substitute-naga10/default.nix
+++ b/pkgs/data/fonts/kochi-substitute-naga10/default.nix
@@ -7,14 +7,18 @@ fetchzip {
 
   url = "mirror://osdn/efont/5411/kochi-substitute-${version}.tar.bz2";
 
+  stripRoot = false;
+
   postFetch = ''
-    tar -xjf $downloadedFile --strip-components=1
     mkdir -p $out/share/fonts/truetype
-    cp ./kochi-gothic-subst.ttf $out/share/fonts/truetype/kochi-gothic-subst-naga10.ttf
-    cp ./kochi-mincho-subst.ttf $out/share/fonts/truetype/kochi-mincho-subst-naga10.ttf
+    mv $out/*/kochi-gothic-subst.ttf $out/share/fonts/truetype/kochi-gothic-subst-naga10.ttf
+    mv $out/*/kochi-mincho-subst.ttf $out/share/fonts/truetype/kochi-mincho-subst-naga10.ttf
+    shopt -s extglob dotglob
+    rm -rf $out/!(share)
+    shopt -u extglob dotglob
   '';
 
-  sha256 = "1bjb5cr3wf3d5y7xj1ly2mkv4ndwvg615rb1ql6lsqc2icjxk7j9";
+  sha256 = "sha256-SZ7ZJYuCYU0NxWHlEszbvFmyZxWeBtmPL204PjIrS64=";
 
   meta = {
     description = "Japanese font, non-free replacement for MS Gothic and MS Mincho";