tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
redhat-official-fonts: 2.2.0 -> 2.3.2
Mario Rodas
5 years ago
e659a322
65eab104
+13
-8
1 changed file
expand all
collapse all
unified
split
pkgs
data
fonts
redhat-official
default.nix
+13
-8
pkgs/data/fonts/redhat-official/default.nix
···
1
-
{ lib, fetchzip }:
0
0
0
0
0
2
3
-
let version = "2.2.0"; in
4
-
fetchzip {
5
-
name = "redhat-official-${version}";
6
-
url = "https://github.com/RedHatOfficial/RedHatFont/archive/${version}.zip";
7
8
postFetch = ''
9
-
mkdir -p $out/share/fonts/opentype
10
-
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
0
11
'';
12
13
-
sha256 = "0yb6shgq6jrv3kq9faky66qpdbv4g580c3jl942844grwyngymyj";
14
15
meta = with lib; {
16
homepage = "https://github.com/RedHatOfficial/RedHatFont";
···
1
+
{ lib, fetchFromGitHub }:
2
+
let
3
+
version = "2.3.2";
4
+
in
5
+
fetchFromGitHub {
6
+
name = "redhat-official-${version}";
7
8
+
owner = "RedHatOfficial";
9
+
repo = "RedHatFont";
10
+
rev = version;
0
11
12
postFetch = ''
13
+
tar xf $downloadedFile --strip=1
14
+
install -m444 -Dt $out/share/fonts/opentype OTF/*.otf
15
+
install -m444 -Dt $out/share/fonts/truetype TTF/*.ttf
16
'';
17
18
+
sha256 = "1afvxmgif61hb17g8inmxvq30vkzwh30mydlqpf0zgvaaz8qdwmv";
19
20
meta = with lib; {
21
homepage = "https://github.com/RedHatOfficial/RedHatFont";