about summary refs log tree commit diff
path: root/pkgs/data
diff options
context:
space:
mode:
authorLinus Arver <linusarver@gmail.com>2021-04-01 00:35:44 -0700
committerGitHub <noreply@github.com>2021-04-01 09:35:44 +0200
commit10286fce21c8323c8729f1ecad25970ec4bb19e6 (patch)
treea163ca7145a336b93c50ed06b3bb78360d40a60b /pkgs/data
parent595363a38f3735f0398dcb51de8e969032d6437f (diff)
kreative-square-fonts: init at unstable-2021-01-29 (#111238)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/data')
-rw-r--r--pkgs/data/fonts/kreative-square-fonts/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/data/fonts/kreative-square-fonts/default.nix b/pkgs/data/fonts/kreative-square-fonts/default.nix
new file mode 100644
index 0000000000000..c9e51319733f0
--- /dev/null
+++ b/pkgs/data/fonts/kreative-square-fonts/default.nix
@@ -0,0 +1,28 @@
+{ lib, fetchFromGitHub }:
+
+let
+  pname = "kreative-square-fonts";
+  version = "unstable-2021-01-29";
+in
+fetchFromGitHub {
+  name = "${pname}-${version}";
+
+  owner = "kreativekorp";
+  repo = "open-relay";
+  rev = "084f05af3602307499981651eca56851bec01fca";
+
+  postFetch = ''
+    tar xf $downloadedFile --strip=1
+    install -Dm444 -t $out/share/fonts/truetype/ KreativeSquare/KreativeSquare.ttf
+    install -Dm444 -t $out/share/fonts/truetype/ KreativeSquare/KreativeSquareSM.ttf
+  '';
+  sha256 = "15vvbbzv6b3jh7lxg77viycdd7yf3y8lxy54vs3rsrsxwncg0pak";
+
+  meta = with lib; {
+    description = "Fullwidth scalable monospace font designed specifically to support pseudographics, semigraphics, and private use characters";
+    homepage = "https://www.kreativekorp.com/software/fonts/ksquare.shtml";
+    license = licenses.ofl;
+    platforms = platforms.all;
+    maintainers = [ maintainers.linus ];
+  };
+}