rubik-font: init at 2.200

+105
+103
pkgs/data/fonts/rubik/default.nix
··· 1 + { stdenv, lib, fetchurl }: 2 + let 3 + # Latest commit touching the rubik tree 4 + commit = "054aa9d546cd6308f8ff7139b332490e0967aebe"; 5 + in 6 + stdenv.mkDerivation { 7 + pname = "rubik"; 8 + version = "2.200"; 9 + 10 + srcs = [ 11 + (fetchurl { 12 + url = "https://raw.githubusercontent.com/googlefonts/rubik/${commit}/fonts/ttf/Rubik-Black.ttf"; 13 + sha256 = "0h4mxqz0b5as7g964bv98aanaghp4wgs2g5wnf7apxnd2fng14dn"; 14 + }) 15 + (fetchurl { 16 + url = "https://raw.githubusercontent.com/googlefonts/rubik/${commit}/fonts/ttf/Rubik-BlackItalic.ttf"; 17 + sha256 = "0x8j3fwavkf1jf7s97ncvs0jk463v1fyajcxqxvv7lpk55sjnbpy"; 18 + }) 19 + (fetchurl { 20 + url = "https://raw.githubusercontent.com/googlefonts/rubik/${commit}/fonts/ttf/Rubik-Bold.ttf"; 21 + sha256 = "0prjqdbdpnhwr66gjw9mc1590gmjl7fir8wnanzch6arvngmxaj9"; 22 + }) 23 + (fetchurl { 24 + url = "https://raw.githubusercontent.com/googlefonts/rubik/${commit}/fonts/ttf/Rubik-BoldItalic.ttf"; 25 + sha256 = "1zyl55fkjr61k6yfvgi0cr2iz4s0kkv3mkjpdmpla9jnk10rd8lm"; 26 + }) 27 + (fetchurl { 28 + url = "https://raw.githubusercontent.com/googlefonts/rubik/${commit}/fonts/ttf/Rubik-ExtraBold.ttf"; 29 + sha256 = "0vi01lc2dadgmw5z26nkfzn7vl3lsd0flhqqfp40nn8jvpdkb2mq"; 30 + }) 31 + (fetchurl { 32 + url = "https://raw.githubusercontent.com/googlefonts/rubik/${commit}/fonts/ttf/Rubik-ExtraBoldItalic.ttf"; 33 + sha256 = "0ldcszzzrc44gldflman7kcfk38x77grjb3zjvxjvgn875ggwabk"; 34 + }) 35 + (fetchurl { 36 + url = "https://raw.githubusercontent.com/googlefonts/rubik/${commit}/fonts/ttf/Rubik-Italic.ttf"; 37 + sha256 = "09x7fh6ad4w6027410vhkvisgy8vqm2mzdsc19z3szlrxi0gl0rx"; 38 + }) 39 + (fetchurl { 40 + url = "https://raw.githubusercontent.com/googlefonts/rubik/${commit}/fonts/ttf/Rubik-Light.ttf"; 41 + sha256 = "19a6k0pprcra6nxk3l0k6wkg9g0qn5h1v71rw2m8im64kyjx4qpf"; 42 + }) 43 + (fetchurl { 44 + url = "https://raw.githubusercontent.com/googlefonts/rubik/${commit}/fonts/ttf/Rubik-LightItalic.ttf"; 45 + sha256 = "0r9hbh9xnbp0584vjiiq72583j1ai3dw93gfy823c736y6bk0j2m"; 46 + }) 47 + (fetchurl { 48 + url = "https://raw.githubusercontent.com/googlefonts/rubik/${commit}/fonts/ttf/Rubik-Medium.ttf"; 49 + sha256 = "01nky9la4qjd80dy200j8l7zl0r2h9zw90k7aghzlb5abk4i3zvf"; 50 + }) 51 + (fetchurl { 52 + url = "https://raw.githubusercontent.com/googlefonts/rubik/${commit}/fonts/ttf/Rubik-MediumItalic.ttf"; 53 + sha256 = "1i81x9h2cr65bj85z5b2mki59532nvlbh92wb84zfhfdz97s30cq"; 54 + }) 55 + (fetchurl { 56 + url = "https://raw.githubusercontent.com/googlefonts/rubik/${commit}/fonts/ttf/Rubik-Regular.ttf"; 57 + sha256 = "1vk4n6yc4x1vlwfrp26jhagyl5l86jwa4lalccc320crrwqfc521"; 58 + }) 59 + (fetchurl { 60 + url = "https://raw.githubusercontent.com/googlefonts/rubik/${commit}/fonts/ttf/Rubik-SemiBold.ttf"; 61 + sha256 = "0blmy1ywsf9hr1a66cl12bjn32i072w6ncvsir0s5smm2c0gksvb"; 62 + }) 63 + (fetchurl { 64 + url = "https://raw.githubusercontent.com/googlefonts/rubik/${commit}/fonts/ttf/Rubik-SemiBoldItalic.ttf"; 65 + sha256 = "1sj22d3jrlxl6ka0naf5nby3k0i7pzadk5b8xgdhcslwijwiib3y"; 66 + }) 67 + ]; 68 + 69 + sourceRoot = "./"; 70 + 71 + unpackCmd = '' 72 + ttfName=$(basename $(stripHash $curSrc)) 73 + cp $curSrc ./$ttfName 74 + ''; 75 + 76 + installPhase = '' 77 + mkdir -p $out/share/fonts/truetype 78 + cp -a *.ttf $out/share/fonts/truetype/ 79 + ''; 80 + 81 + meta = with lib; { 82 + homepage = "https://fonts.google.com/specimen/Rubik"; 83 + description = "Rubik Font - is a 5 weight Roman + Italic family."; 84 + longDescription = '' 85 + The Rubik Fonts project was initiated as part of the Chrome CubeLab 86 + project. 87 + 88 + Rubik is a 5 weight Roman + Italic family. 89 + 90 + Rubik supports the Latin, Cyrillic and Hebrew scripts. The Latin and Cyrillic 91 + were designed by Philipp Hubert and Sebastian Fischer at Hubert Fischer. 92 + 93 + The Hebrew was initially designed by Philipp and Sebastian, and then revised by 94 + type designer and Hebrew native reader Meir Sadan to adjust proportions, 95 + spacing and other design details. 96 + 97 + Cyrillic was initially designed by Philipp and Sebastian, and then revised and 98 + expanded by Cyreal Fonts Team (Alexei Vanyashin and Nikita Kanarev). Exising 99 + glyphs were improved, and glyph set was expanded to GF Cyrillic Plus. 100 + ''; 101 + platforms = platforms.all; 102 + }; 103 + }
+2
pkgs/top-level/all-packages.nix
··· 22678 22678 22679 22679 recursive = callPackage ../data/fonts/recursive { }; 22680 22680 22681 + rubik = callPackage ../data/fonts/rubik { }; 22682 + 22681 22683 rhodium-libre = callPackage ../data/fonts/rhodium-libre { }; 22682 22684 22683 22685 rictydiminished-with-firacode = callPackage ../data/fonts/rictydiminished-with-firacode { };