summary refs log tree commit diff
path: root/pkgs/data
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-02-29 17:30:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2020-02-29 17:30:00 -0500
commit609a140993593462e05ce0bb5a971361b5bb72bb (patch)
tree7cf562c9b9b7b66bff266eef381a51ac10da2c69 /pkgs/data
parent096a00a7092fc495ab64279af1cccce297b4180b (diff)
downloadnixpkgs-609a140993593462e05ce0bb5a971361b5bb72bb.tar
nixpkgs-609a140993593462e05ce0bb5a971361b5bb72bb.tar.gz
nixpkgs-609a140993593462e05ce0bb5a971361b5bb72bb.tar.bz2
nixpkgs-609a140993593462e05ce0bb5a971361b5bb72bb.tar.lz
nixpkgs-609a140993593462e05ce0bb5a971361b5bb72bb.tar.xz
nixpkgs-609a140993593462e05ce0bb5a971361b5bb72bb.tar.zst
nixpkgs-609a140993593462e05ce0bb5a971361b5bb72bb.zip
recursive: 1.030 -> 1.042
Changelog: https://github.com/arrowtype/recursive/releases/tag/1.042
Diffstat (limited to 'pkgs/data')
-rw-r--r--pkgs/data/fonts/recursive/default.nix31
1 files changed, 15 insertions, 16 deletions
diff --git a/pkgs/data/fonts/recursive/default.nix b/pkgs/data/fonts/recursive/default.nix
index 3b1e8931b89..9636d50a54f 100644
--- a/pkgs/data/fonts/recursive/default.nix
+++ b/pkgs/data/fonts/recursive/default.nix
@@ -1,24 +1,23 @@
-{ stdenv, fetchzip }:
+{ lib, fetchzip }:
 
-stdenv.mkDerivation rec {
-  pname = "recursive";
-  version = "1.030";
+let
+  version = "1.042";
+in
+fetchzip {
+  name = "recursive-${version}";
 
-  src = fetchzip {
-    url = "https://github.com/arrowtype/recursive/releases/download/${version}/recursive-beta_1_030--statics.zip";
-    sha256 = "1clds4ljiqdf0zc3b7nlna1w7kc23pc9gxdd5vwbgmz9xfvkam0f";
-    stripRoot = false;
-  };
+  url = "https://github.com/arrowtype/recursive/releases/download/${version}/Recursive-Beta_${version}.zip";
 
-  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 \;
+  postFetch = ''
+    mkdir -p $out/share/fonts/
+    unzip -j $downloadedFile \*.ttf   -d $out/share/fonts/truetype
+    unzip -j $downloadedFile \*.woff2 -d $out/share/fonts/woff2
   '';
 
-  meta = with stdenv.lib; {
-    homepage = https://github.com/arrowtype/recursive;
+  sha256 = "1zcrvnzwd39fim2jxa3by6jgdrx7fdp64iw2bd181iwzinv1yqsa";
+
+  meta = with lib; {
+    homepage = "https://recursive.design/";
     description = "A variable font family for code & UI";
     license = licenses.ofl;
     maintainers = [ maintainers.eadwu ];