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