tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
biz-ud-gothic: init at 1.051
Kenichi Kamiya
9 months ago
a46dd573
3896a0c0
+41
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
bi
biz-ud-gothic
package.nix
+41
pkgs/by-name/bi/biz-ud-gothic/package.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
stdenvNoCC,
4
4
+
fetchzip,
5
5
+
nix-update-script,
6
6
+
}:
7
7
+
8
8
+
stdenvNoCC.mkDerivation (finalAttrs: {
9
9
+
pname = "biz-ud-gothic";
10
10
+
version = "1.051";
11
11
+
12
12
+
src = fetchzip {
13
13
+
# Sticking with this assets file due to ongoing discussions.
14
14
+
# We may switch to a different asset once the issue is resolved or clarifications are provided.
15
15
+
# ref: https://github.com/googlefonts/morisawa-biz-ud-gothic/issues/47
16
16
+
url = "https://github.com/googlefonts/morisawa-biz-ud-gothic/releases/download/v${finalAttrs.version}/morisawa-biz-ud-gothic-fonts.zip";
17
17
+
hash = "sha256-7PlIrQX1fnFHXm7mjfoOCVp3GSnLT2GlVZdSoZbh/s4=";
18
18
+
};
19
19
+
20
20
+
installPhase = ''
21
21
+
runHook preInstall
22
22
+
23
23
+
install -Dm444 fonts/ttf/*.ttf -t "$out/share/fonts/truetype/"
24
24
+
25
25
+
runHook postInstall
26
26
+
'';
27
27
+
28
28
+
passthru = {
29
29
+
updateScript = nix-update-script { };
30
30
+
};
31
31
+
32
32
+
meta = {
33
33
+
description = "Universal Design Japanese font";
34
34
+
homepage = "https://github.com/googlefonts/morisawa-biz-ud-gothic";
35
35
+
license = lib.licenses.ofl;
36
36
+
maintainers = with lib.maintainers; [
37
37
+
kachick
38
38
+
];
39
39
+
platforms = lib.platforms.all;
40
40
+
};
41
41
+
})