3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/recursive/default.nix
2020-02-10 20:33:01 +01:00

28 lines
854 B
Nix

{ stdenv, fetchzip }:
stdenv.mkDerivation rec {
pname = "recursive";
version = "1.030";
src = fetchzip {
url = "https://github.com/arrowtype/recursive/releases/download/${version}/recursive-beta_1_030--statics.zip";
sha256 = "1clds4ljiqdf0zc3b7nlna1w7kc23pc9gxdd5vwbgmz9xfvkam0f";
stripRoot = false;
};
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;
};
}