summary refs log tree commit diff
path: root/pkgs/data/fonts
diff options
context:
space:
mode:
authorEdmund Wu <fangkazuto@gmail.com>2019-11-10 11:23:42 -0500
committerLassulus <github@lassul.us>2019-11-17 23:34:44 +0100
commit431038aa26826f5fd1582f828eba06f7ed370f46 (patch)
tree27df36b566754a009ab846490303addfaf306cbb /pkgs/data/fonts
parent1fb4a93c3a37e4fdb0caf82dc5b5dfb2d654057c (diff)
downloadnixpkgs-431038aa26826f5fd1582f828eba06f7ed370f46.tar
nixpkgs-431038aa26826f5fd1582f828eba06f7ed370f46.tar.gz
nixpkgs-431038aa26826f5fd1582f828eba06f7ed370f46.tar.bz2
nixpkgs-431038aa26826f5fd1582f828eba06f7ed370f46.tar.lz
nixpkgs-431038aa26826f5fd1582f828eba06f7ed370f46.tar.xz
nixpkgs-431038aa26826f5fd1582f828eba06f7ed370f46.tar.zst
nixpkgs-431038aa26826f5fd1582f828eba06f7ed370f46.zip
recursive: init at 1.022
Diffstat (limited to 'pkgs/data/fonts')
-rw-r--r--pkgs/data/fonts/recursive/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/data/fonts/recursive/default.nix b/pkgs/data/fonts/recursive/default.nix
new file mode 100644
index 00000000000..d3d65f8e515
--- /dev/null
+++ b/pkgs/data/fonts/recursive/default.nix
@@ -0,0 +1,39 @@
+{ stdenv, fetchzip }:
+
+stdenv.mkDerivation rec {
+  pname = "recursive";
+  version = "1.022";
+
+  srcs = [
+    (fetchzip {
+      name = "${pname}";
+      url = "https://github.com/arrowtype/recursive/releases/download/v${version}/recursive-beta_1_022.zip";
+      sha256 = "09nr1fli7ksv8z4yb25c4xidwsqq50av18qrybsy4kqy5c22957v";
+      stripRoot = false;
+    })
+
+    (fetchzip {
+      name = "${pname}-static";
+      url = "https://github.com/arrowtype/recursive/releases/download/v${version}/recursive-static_fonts-b020.zip";
+      sha256 = "1wlj113gjm26ra9y2r2b3syis2wx0mjq2m8i8xpwscp1kflma1r6";
+      stripRoot = false;
+    })
+  ];
+
+  sourceRoot = ".";
+
+  installPhase = ''
+    mkdir -p $out/share/fonts/{opentype,truetype,woff2}
+    find -name "*.otf" -exec cp "{}" $out/share/fonts/opentype \;
+    find -name "*.ttf" -exec cp "{}" $out/share/fonts/truetype \;
+    find -name "*.woff2" -exec cp "{}" $out/share/fonts/woff2 \;
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/arrowtype/recursive;
+    description = "A variable font family for code & UI";
+    license = licenses.ofl;
+    maintainers = [ maintainers.eadwu ];
+    platforms = platforms.all;
+  };
+}