2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenvNoCC.mkDerivation {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "junicode";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "1.003";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "psb1558";
|
|
|
|
repo = "Junicode-font";
|
|
|
|
rev = "55d816d91a5e19795d9b66edec478379ee2b9ddb";
|
|
|
|
hash = "sha256-eTiMgI8prnpR4H6sqKRaB3Gcnt4C5QWZalRajWW49G4=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
local out_ttf=$out/share/fonts/junicode-ttf
|
|
|
|
mkdir -p $out_ttf
|
2023-02-02 18:25:31 +00:00
|
|
|
cp legacy/*.ttf $out_ttf
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://github.com/psb1558/Junicode-font";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A Unicode font for medievalists";
|
|
|
|
maintainers = with lib.maintainers; [ ivan-timokhin ];
|
|
|
|
license = lib.licenses.ofl;
|
|
|
|
};
|
|
|
|
}
|