2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fonttosfnt, mkfontdir }:
|
2019-01-17 21:09:48 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cherry";
|
2019-10-04 22:38:52 +00:00
|
|
|
version = "1.4";
|
2019-01-17 21:09:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "turquoise-hexagon";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-10-04 22:38:52 +00:00
|
|
|
sha256 = "13zkxwp6r6kcxv4x459vwscr0n0sik4a3kcz5xnmlpvcdnbxi586";
|
2019-01-17 21:09:48 +00:00
|
|
|
};
|
|
|
|
|
2019-10-04 22:38:52 +00:00
|
|
|
nativeBuildInputs = [ fonttosfnt mkfontdir ];
|
2019-01-17 21:09:48 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
patchShebangs make.sh
|
|
|
|
./make.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/fonts/misc
|
2019-10-04 22:38:52 +00:00
|
|
|
cp *.otb $out/share/fonts/misc
|
|
|
|
|
|
|
|
# create fonts.dir so NixOS xorg module adds to fp
|
|
|
|
mkfontdir $out/share/fonts/misc
|
2019-01-17 21:09:48 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-01-17 21:09:48 +00:00
|
|
|
description = "cherry font";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/turquoise-hexagon/cherry";
|
2019-01-17 21:09:48 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|