diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2023-11-03 19:34:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-03 19:34:52 +0100 |
commit | 85b95811a8e7e09f4b541bb25bfd7f68657a9d1a (patch) | |
tree | b094f020c08ec838075e9932c82bd682f9cc6191 | |
parent | 237a4e15f89694405ee2a225fbbd03e3dddab09b (diff) | |
parent | a4c808f542aa504950394ecb02de532760701934 (diff) |
Merge pull request #265271 from drupol/font/add-fg-virgil
fg-virgil: init at 0.16.1
-rw-r--r-- | pkgs/data/fonts/fg-virgil/default.nix | 31 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/data/fonts/fg-virgil/default.nix b/pkgs/data/fonts/fg-virgil/default.nix new file mode 100644 index 0000000000000..fdf83df42e031 --- /dev/null +++ b/pkgs/data/fonts/fg-virgil/default.nix @@ -0,0 +1,31 @@ +{ 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; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b8667f8be2cc5..f0a8d38bc769b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -29305,6 +29305,8 @@ with pkgs; ferrum = callPackage ../data/fonts/ferrum { }; + fg-virgil = callPackage ../data/fonts/fg-virgil { }; + fixedsys-excelsior = callPackage ../data/fonts/fixedsys-excelsior { }; graphs = callPackage ../data/misc/graphs { }; |