1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

recursive: 1.030 -> 1.042

Changelog: https://github.com/arrowtype/recursive/releases/tag/1.042
This commit is contained in:
Mario Rodas 2020-02-29 17:30:00 -05:00
parent 096a00a709
commit 609a140993
No known key found for this signature in database
GPG key ID: 325649BCA6D53027

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