mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-05 09:58:50 +03:00
32 lines
837 B
Nix
32 lines
837 B
Nix
{ lib, stdenvNoCC, fetchFromGitHub }:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "fg-virgil";
|
|
version = "0.16.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "excalidraw";
|
|
repo = "excalidraw";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-iziCCHacaShPqb0f5nI8cCinFFs5fB3TcMJrifNhg4I=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
})
|