Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / by-name / zp / zpix-pixel-font / package.nix
blob6a785c9d8fac4b435e6e0106eb2bcbc839888a92
1 { lib
2 , stdenvNoCC
3 , fetchurl
4 }:
5 stdenvNoCC.mkDerivation rec {
6   pname = "zpix-pixel-font";
7   version = "3.1.8";
9   srcs = [
10     (fetchurl {
11       name = "zpix-pixel-font.bdf";
12       url = "https://github.com/SolidZORO/zpix-pixel-font/releases/download/v${version}/zpix.bdf";
13       hash = "sha256-qE6YPKuk1FRRrTvmy4YIDuxRfslma264piUDj1FWtk4=";
14     })
15     (fetchurl {
16       name = "zpix-pixel-font.ttf";
17       url = "https://github.com/SolidZORO/zpix-pixel-font/releases/download/v${version}/zpix.ttf";
18       hash = "sha256-UIgLGsVTbyhYMKfTYiA+MZmV4dFT9HX3sxTdrcc4vE0=";
19     })
20   ];
22   dontUnpack = true;
23   __structuredAttrs = true;
25   installPhase = ''
26     runHook preInstall
27     install -Dm444 ''${srcs[0]} $out/share/fonts/misc/zpix.bdf
28     install -Dm444 ''${srcs[1]} $out/share/fonts/truetype/zpix.ttf
29     runHook postInstall
30   '';
32   meta = with lib; {
33     description = "A pixel font supporting multiple languages like English, Chinese and Japanese";
34     homepage = "https://github.com/SolidZORO/zpix-pixel-font/";
35     changelog = "https://github.com/SolidZORO/zpix-pixel-font/blob/master/CHANGELOG.md";
36     license = licenses.unfree;
37     maintainers = [ maintainers.adriangl ];
38     platforms = platforms.all;
39   };