You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.6 KiB
52 lines
1.6 KiB
5 years ago
|
{ lib, fetchFromGitHub }:
|
||
6 years ago
|
let
|
||
2 years ago
|
font-awesome = { version, sha256, rev ? version }: fetchFromGitHub {
|
||
5 years ago
|
name = "font-awesome-${version}";
|
||
6 years ago
|
|
||
|
|
||
5 years ago
|
owner = "FortAwesome";
|
||
|
repo = "Font-Awesome";
|
||
|
inherit rev;
|
||
6 years ago
|
|
||
5 years ago
|
postFetch = ''
|
||
|
tar xf $downloadedFile --strip=1
|
||
|
install -m444 -Dt $out/share/fonts/opentype {fonts,otfs}/*.otf
|
||
6 years ago
|
'';
|
||
5 years ago
|
|
||
|
inherit sha256;
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Font Awesome - OTF font";
|
||
|
longDescription = ''
|
||
|
Font Awesome gives you scalable vector icons that can instantly be customized.
|
||
|
This package includes only the OTF font. For full CSS etc. see the project website.
|
||
|
'';
|
||
2 years ago
|
homepage = "https://fontawesome.com/";
|
||
5 years ago
|
license = licenses.ofl;
|
||
|
platforms = platforms.all;
|
||
|
maintainers = with maintainers; [ abaldeau johnazoidberg ];
|
||
|
};
|
||
|
};
|
||
2 years ago
|
in
|
||
|
{
|
||
|
# Keeping version 4 and 5 because version 6 is incompatible for some icons. That
|
||
5 years ago
|
# means that projects which depend on it need to actively convert the
|
||
|
# symbols. See:
|
||
|
# https://github.com/greshake/i3status-rust/issues/130
|
||
|
# https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4
|
||
2 years ago
|
# https://fontawesome.com/v6/docs/web/setup/upgrade/
|
||
5 years ago
|
v4 = font-awesome {
|
||
|
version = "4.7.0";
|
||
|
rev = "v4.7.0";
|
||
|
sha256 = "1j8i32dq6rrlv3kf2hnq81iqks06kczaxjks7nw3zyq1231winm9";
|
||
|
};
|
||
|
v5 = font-awesome {
|
||
3 years ago
|
version = "5.15.3";
|
||
|
sha256 = "sha256-EDxk/yO3nMmtM/ytrAEgPYSBbep3rA3NrKkiqf3OsU0=";
|
||
6 years ago
|
};
|
||
2 years ago
|
v6 = font-awesome {
|
||
|
version = "6.1.1";
|
||
|
sha256 = "sha256-BjK1PJQFWtKDvfQ2Vh7BoOPqYucyvOG+2Pu/Kh+JpAA";
|
||
|
};
|
||
6 years ago
|
}
|