depot/third_party/nixpkgs/pkgs/data/fonts/cherry/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

37 lines
823 B
Nix

{ lib, stdenv, fetchFromGitHub, xorg }:
stdenv.mkDerivation rec {
pname = "cherry";
version = "1.4";
src = fetchFromGitHub {
owner = "turquoise-hexagon";
repo = pname;
rev = version;
sha256 = "13zkxwp6r6kcxv4x459vwscr0n0sik4a3kcz5xnmlpvcdnbxi586";
};
nativeBuildInputs = [ xorg.fonttosfnt xorg.mkfontdir ];
buildPhase = ''
patchShebangs make.sh
./make.sh
'';
installPhase = ''
mkdir -p $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 lib; {
description = "cherry font";
homepage = "https://github.com/turquoise-hexagon/cherry";
license = licenses.mit;
maintainers = with maintainers; [ dtzWill ];
platforms = platforms.all;
};
}