vista-fonts-chs: add missing hooks

+9 -1
+9 -1
pkgs/by-name/vi/vista-fonts-chs/package.nix
··· 13 13 url = "https://web.archive.org/web/20161221192937if_/http://download.microsoft.com/download/d/6/e/d6e2ff26-5821-4f35-a18b-78c963b1535d/VistaFont_CHS.EXE"; 14 14 # Alternative mirror: 15 15 # http://www.eeo.cn/download/font/VistaFont_CHS.EXE 16 - sha256 = "1qwm30b8aq9piyqv07hv8b5bac9ms40rsdf8pwix5dyk8020i8xi"; 16 + hash = "sha256-saMIBEDTt9Ijv8g1nQHRNTG1ykIbHrCxjzdhhRYYleM="; 17 17 }; 18 18 19 19 nativeBuildInputs = [ cabextract ]; 20 20 21 21 unpackPhase = '' 22 + runHook preUnpack 23 + 22 24 cabextract --lowercase --filter '*.TTF' $src 25 + 26 + runHook postUnpack 23 27 ''; 24 28 25 29 installPhase = '' 30 + runHook preInstall 31 + 26 32 mkdir -p $out/share/fonts/truetype 27 33 cp *.ttf $out/share/fonts/truetype 28 34 ··· 31 37 mkdir -p $out/etc/fonts/conf.d 32 38 substitute ${./no-op.conf} $out/etc/fonts/conf.d/30-msyahei.conf \ 33 39 --subst-var-by fontname "Microsoft YaHei" 40 + 41 + runHook postInstall 34 42 ''; 35 43 36 44 meta = {