19 lines
390 B
Nix
19 lines
390 B
Nix
{ lib, config, pkgs, ... }:
|
|
|
|
pkgs.stdenv.mkDerivation rec {
|
|
pname = "wqy-zenhei";
|
|
version = "0.9.45";
|
|
|
|
src = pkgs.fetchurl {
|
|
url = "mirror://sourceforge/wqy/${pname}-${version}.tar.gz";
|
|
hash = "sha256-5LfjBkdb+UJ9F1dXjw5FKJMMhMROqj8WfUxC8RDuddY=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm644 *.ttc -t $out/share/fonts/
|
|
|
|
runHook postInstall
|
|
'';
|
|
} |