cherry: 1.3 -> 1.4, pcf -> otb, mkfontdir for X11

This commit is contained in:
Will Dietz 2019-10-04 17:38:52 -05:00
parent b01407602c
commit 47b6dd4345
No known key found for this signature in database
GPG key ID: EBB0EA4124809D02
2 changed files with 9 additions and 6 deletions

View file

@ -1,17 +1,17 @@
{ stdenv, fetchFromGitHub, bdftopcf }:
{ stdenv, fetchFromGitHub, fonttosfnt, mkfontdir }:
stdenv.mkDerivation rec {
pname = "cherry";
version = "1.3";
version = "1.4";
src = fetchFromGitHub {
owner = "turquoise-hexagon";
repo = pname;
rev = version;
sha256 = "1zaiqspf6y0hpszhihdsvsyw33d3ffdap4dym7w45wfrhdpvpi0p";
sha256 = "13zkxwp6r6kcxv4x459vwscr0n0sik4a3kcz5xnmlpvcdnbxi586";
};
nativeBuildInputs = [ bdftopcf ];
nativeBuildInputs = [ fonttosfnt mkfontdir ];
buildPhase = ''
patchShebangs make.sh
@ -20,7 +20,10 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir -p $out/share/fonts/misc
cp *.pcf $out/share/fonts/misc
cp *.otb $out/share/fonts/misc
# create fonts.dir so NixOS xorg module adds to fp
mkfontdir $out/share/fonts/misc
'';
meta = with stdenv.lib; {

View file

@ -16729,7 +16729,7 @@ in
charis-sil = callPackage ../data/fonts/charis-sil { };
cherry = callPackage ../data/fonts/cherry { };
cherry = callPackage ../data/fonts/cherry { inherit (xorg) fonttosfnt mkfontdir; };
cnstrokeorder = callPackage ../data/fonts/cnstrokeorder {};