tangled
alpha
login
or
join now
pluie.me
/
flake
2
fork
atom
All my system configs and packages in one repo
2
fork
atom
overview
issues
pulls
pipelines
packages: drop dm-sans-unstable
pluie.me
8 months ago
ac159b21
055df3a4
verified
This commit was signed with the committer's
known signature
.
pluie.me
SSH Key Fingerprint:
SHA256:YtI1D7vlcZ4obaiJ4tQihtswcMhHKdfYZuc4whOX2y8=
-39
1 changed file
expand all
collapse all
unified
split
packages
dm-sans-unstable
package.nix
-39
packages/dm-sans-unstable/package.nix
···
1
1
-
{
2
2
-
lib,
3
3
-
dm-sans,
4
4
-
fetchFromGitHub,
5
5
-
6
6
-
# DM Sans has specialized variants at various font sizes to presumably improve legibility.
7
7
-
# This is disabled by default to decrease closure size (a decrease of 13.2MiB!)
8
8
-
enableSizeSpecialization ? false,
9
9
-
10
10
-
# You can't really use web fonts on desktop anyway (removes 22.6MiB!!!)
11
11
-
enableWebFonts ? false,
12
12
-
}:
13
13
-
dm-sans.overrideAttrs {
14
14
-
version = "1.002-unstable-2024-07-03";
15
15
-
16
16
-
src = fetchFromGitHub {
17
17
-
owner = "googlefonts";
18
18
-
repo = "dm-fonts";
19
19
-
rev = "4412393b7d2de9fe7a92064c2dce9b5af5d7fd26";
20
20
-
hash = "sha256-Zh5YBQaMKSnOHLK9XNj5+ExQY0357GTsbYOvi1Q87+0=";
21
21
-
};
22
22
-
23
23
-
installPhase = ''
24
24
-
runHook preInstall
25
25
-
26
26
-
mkdir -p $out/share/fonts/{opentype,truetype,woff}
27
27
-
cp Sans/fonts/otf/*.otf $out/share/fonts/opentype
28
28
-
29
29
-
cp Sans/fonts/ttf/${
30
30
-
lib.optionalString (!enableSizeSpecialization) "DMSans-"
31
31
-
}*.ttf $out/share/fonts/truetype
32
32
-
cp Sans/fonts/variable/*.ttf $out/share/fonts/truetype
33
33
-
${lib.optionalString enableWebFonts ''cp Sans/fonts/webfonts/*.woff2 $out/share/fonts/woff''}
34
34
-
35
35
-
cp Serif/Exports/*.ttf $out/share/fonts/truetype
36
36
-
37
37
-
runHook postInstall
38
38
-
'';
39
39
-
}