about summary refs log tree commit diff
path: root/pkgs/data
diff options
context:
space:
mode:
authorCandy Cloud <candyc1oud@outlook.com>2022-12-16 13:01:52 +0000
committerCandy Cloud <candyc1oud@outlook.com>2022-12-16 13:01:52 +0000
commite7592807fbf296990b6ced9ebb86881eb154ebcc (patch)
tree9caa836e20428966814fab069ac8932ec9da6cae /pkgs/data
parent09a1c5bca0297fcf935a642b4817e9600e012cc8 (diff)
smiley-sans: init at 1.0.0
Diffstat (limited to 'pkgs/data')
-rw-r--r--pkgs/data/fonts/smiley-sans/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/data/fonts/smiley-sans/default.nix b/pkgs/data/fonts/smiley-sans/default.nix
new file mode 100644
index 0000000000000..71dda0b34b2c6
--- /dev/null
+++ b/pkgs/data/fonts/smiley-sans/default.nix
@@ -0,0 +1,33 @@
+{ lib, stdenvNoCC, fetchurl, unzip }:
+
+stdenvNoCC.mkDerivation rec {
+  pname = "smiley-sans";
+  version = "1.0.0";
+
+  src = fetchurl {
+    url = "https://github.com/atelier-anchor/smiley-sans/releases/download/v${version}/smiley-sans-v${version}.zip";
+    sha256 = "sha256-gpPJuf1Eye5rP6tpaGJEUFnk2Ys0GhSNRUT5HQE2P8E=";
+  };
+
+  unpackPhase = ''
+    ${unzip}/bin/unzip $src
+  '';
+
+  installPhase = ''
+    runHook preInstall
+    mkdir -p $out/share/fonts
+    install -Dm644 -t $out/share/fonts/opentype *.otf
+    install -Dm644 -t $out/share/fonts/truetype *.ttf
+    install -Dm644 -t $out/share/fonts/smiley-sans *.woff2
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    description = "A condensed and oblique Chinese typeface seeking a visual balance between the humanist and the geometric";
+    homepage = "https://atelier-anchor.com/typefaces/smiley-sans/";
+    changelog = "https://github.com/atelier-anchor/smiley-sans/blob/main/CHANGELOG.md";
+    license = licenses.ofl;
+    maintainers = with maintainers; [ candyc1oud ];
+    platforms = platforms.all;
+  };
+}