summary refs log tree commit diff
path: root/pkgs/data/fonts
diff options
context:
space:
mode:
authorPol Dellaiera <pol.dellaiera@protonmail.com>2023-11-03 17:52:57 +0100
committerPol Dellaiera <pol.dellaiera@protonmail.com>2023-11-03 19:26:47 +0100
commita4c808f542aa504950394ecb02de532760701934 (patch)
treeccc75e993f864fd29c6f39ee46925c2b6572b055 /pkgs/data/fonts
parentc2de1b6a9caa9b5841dceb7790b677dd46d4e1c6 (diff)
downloadnixpkgs-a4c808f542aa504950394ecb02de532760701934.tar
nixpkgs-a4c808f542aa504950394ecb02de532760701934.tar.gz
nixpkgs-a4c808f542aa504950394ecb02de532760701934.tar.bz2
nixpkgs-a4c808f542aa504950394ecb02de532760701934.tar.lz
nixpkgs-a4c808f542aa504950394ecb02de532760701934.tar.xz
nixpkgs-a4c808f542aa504950394ecb02de532760701934.tar.zst
nixpkgs-a4c808f542aa504950394ecb02de532760701934.zip
fg-virgil: init at 0.16.1
Diffstat (limited to 'pkgs/data/fonts')
-rw-r--r--pkgs/data/fonts/fg-virgil/default.nix31
1 files changed, 31 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 00000000000..fdf83df42e0
--- /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;
+  };
+})