summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-03-01 16:04:43 -0500
committerGitHub <noreply@github.com>2020-03-01 16:04:43 -0500
commitec97c20fff7fac51dc3eb3f2d91ff7f0376c8c8f (patch)
tree07ce04891772f9bd8f735d7309352bf6c2d30302
parenttitaniumenv: add Titanium SDK 8.3 (diff)
parentrecursive: 1.030 -> 1.042 (diff)
downloadnixpkgs-ec97c20fff7fac51dc3eb3f2d91ff7f0376c8c8f.tar.gz
Merge pull request #81419 from marsam/update-recursive
recursive: 1.030 -> 1.042
-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 3b1e8931b897..9636d50a54f9 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 ];