about summary refs log tree commit diff
path: root/modules/fonts/monolisa.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/fonts/monolisa.nix')
-rw-r--r--modules/fonts/monolisa.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/modules/fonts/monolisa.nix b/modules/fonts/monolisa.nix
new file mode 100644
index 0000000..9ba1917
--- /dev/null
+++ b/modules/fonts/monolisa.nix
@@ -0,0 +1,35 @@
+{
+  lib,
+  requireFile,
+  unzip,
+  stdenvNoCC,
+}:
+stdenvNoCC.mkDerivation (finalAttrs: {
+  pname = "monolisa";
+  version = "1";
+
+  src = ../../secrets/monolisa.zip;
+
+  outputs = [
+    "out"
+  ];
+
+  nativeBuildInputs = [
+    unzip
+  ];
+
+  unpackPhase = ''
+    unzip $src
+  '';
+
+  installPhase = ''
+    install -m444 -Dt $out/share/fonts/opentype/monolisa monolisa/*.ttf
+  '';
+
+  meta = {
+    description = "Monolisa Typeface";
+    homepage = "https://monolisa.dev";
+    license = lib.licenses.unfree;
+    platforms = lib.platforms.all;
+  };
+})