3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/recursive/default.nix

28 lines
854 B
Nix
Raw Normal View History

2019-11-10 16:23:42 +00:00
{ stdenv, fetchzip }:
stdenv.mkDerivation rec {
pname = "recursive";
2019-12-30 01:04:35 +00:00
version = "1.030";
2019-11-10 16:23:42 +00:00
2019-12-30 01:04:35 +00:00
src = fetchzip {
url = "https://github.com/arrowtype/recursive/releases/download/${version}/recursive-beta_1_030--statics.zip";
sha256 = "1clds4ljiqdf0zc3b7nlna1w7kc23pc9gxdd5vwbgmz9xfvkam0f";
stripRoot = false;
};
2019-11-10 16:23:42 +00:00
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;
};
}