Merge pull request #81419 from marsam/update-recursive

recursive: 1.030 -> 1.042
This commit is contained in:
Mario Rodas 2020-03-01 16:04:43 -05:00 committed by GitHub
commit ec97c20fff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ];