504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
31 lines
837 B
Nix
31 lines
837 B
Nix
{ lib, stdenvNoCC, fetchFromGitHub }:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "fg-virgil";
|
|
version = "0.17.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "excalidraw";
|
|
repo = "excalidraw";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-awd5jTz4sSiliEq7xt6dUR31C85oDcCP5GLuQn0ohj0=";
|
|
};
|
|
|
|
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";
|
|
description = "The font that powers Excalidraw";
|
|
platforms = lib.platforms.all;
|
|
maintainers = with lib.maintainers; [ drupol ];
|
|
license = lib.licenses.ofl;
|
|
};
|
|
})
|