2023-11-16 04:20:00 +00:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
|
|
pname = "fg-virgil";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.17.3";
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "excalidraw";
|
|
|
|
repo = "excalidraw";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-j8fT17RkgMQAAS4KsC2+uItT8Z300SZWnLkyo4XI1WY=";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -D -m 444 public/Virgil.woff2 -t $out/share/fonts/woff2
|
|
|
|
install -D -m 444 public/FG_Virgil.woff2 -t $out/share/fonts/woff2
|
|
|
|
install -D -m 444 public/FG_Virgil.ttf -t $out/share/fonts/ttf
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/excalidraw/virgil";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Font that powers Excalidraw";
|
2023-11-16 04:20:00 +00:00
|
|
|
platforms = lib.platforms.all;
|
|
|
|
maintainers = with lib.maintainers; [ drupol ];
|
|
|
|
license = lib.licenses.ofl;
|
|
|
|
};
|
|
|
|
})
|