forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
font-awesome_4: Was removed, add again
Version 5 is incompatible for some icons, so projects that depend on it need to actively convert the symbols, see: greshake/i3status-rust#130 Reintroducing the old version lets us use those programs that haven't been updated. Was removed in 0a393f5
- Loading branch information
1 parent
e21cb99
commit da40bc4
Showing
2 changed files
with
39 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,45 @@ | ||
{ lib, fetchFromGitHub }: | ||
|
||
let | ||
version = "5.9.0"; | ||
in fetchFromGitHub rec { | ||
name = "font-awesome-${version}"; | ||
|
||
owner = "FortAwesome"; | ||
repo = "Font-Awesome"; | ||
rev = version; | ||
font-awesome = { version, sha256, rev ? version}: fetchFromGitHub rec { | ||
name = "font-awesome-${version}"; | ||
|
||
postFetch = '' | ||
tar xf $downloadedFile --strip=1 | ||
install -m444 -Dt $out/share/fonts/opentype otfs/*.otf | ||
''; | ||
|
||
sha256 = "0sz7mn7g968vp5hszs05grpphd7zr3073az8lyy1lj0096zvjjii"; | ||
owner = "FortAwesome"; | ||
repo = "Font-Awesome"; | ||
inherit rev; | ||
|
||
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. | ||
postFetch = '' | ||
tar xf $downloadedFile --strip=1 | ||
install -m444 -Dt $out/share/fonts/opentype {fonts,otfs}/*.otf | ||
''; | ||
homepage = http://fortawesome.github.io/Font-Awesome/; | ||
license = licenses.ofl; | ||
platforms = platforms.all; | ||
maintainers = with maintainers; [ abaldeau ]; | ||
|
||
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. | ||
''; | ||
homepage = "http://fortawesome.github.io/Font-Awesome/"; | ||
license = licenses.ofl; | ||
platforms = platforms.all; | ||
maintainers = with maintainers; [ abaldeau johnazoidberg ]; | ||
}; | ||
}; | ||
in { | ||
# Keeping version 4 because version 5 is incompatible for some icons. That | ||
# 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 | ||
v4 = font-awesome { | ||
version = "4.7.0"; | ||
rev = "v4.7.0"; | ||
sha256 = "1j8i32dq6rrlv3kf2hnq81iqks06kczaxjks7nw3zyq1231winm9"; | ||
}; | ||
v5 = font-awesome { | ||
version = "5.9.0"; | ||
sha256 = "0sz7mn7g968vp5hszs05grpphd7zr3073az8lyy1lj0096zvjjii"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters