mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
font-awesome: Add 5.0.6
Rename font-awesome-ttf to font-awesome_4, add alias to old name
This commit is contained in:
parent
87658f3632
commit
7b2cff98a0
30
pkgs/data/fonts/font-awesome-5/default.nix
Normal file
30
pkgs/data/fonts/font-awesome-5/default.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{ stdenv, fetchzip }:
|
||||
|
||||
let
|
||||
version = "5.0.6";
|
||||
in fetchzip rec {
|
||||
name = "font-awesome-${version}";
|
||||
|
||||
url = "https://github.com/FortAwesome/Font-Awesome/archive/${version}.zip";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts
|
||||
unzip -j $downloadedFile "Font-Awesome-${version}/use-on-desktop/Font Awesome 5 Brands-Regular-400.otf" -d $out/share/fonts/opentype
|
||||
unzip -j $downloadedFile "Font-Awesome-${version}/use-on-desktop/Font Awesome 5 Free-Regular-400.otf" -d $out/share/fonts/opentype
|
||||
unzip -j $downloadedFile "Font-Awesome-${version}/use-on-desktop/Font Awesome 5 Free-Solid-900.otf" -d $out/share/fonts/opentype
|
||||
'';
|
||||
|
||||
sha256 = "1p7xb8s371r62rx0akcnlkk4mspjid6y0s9h04gakx83ymgjlfg4";
|
||||
|
||||
meta = with stdenv.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 ];
|
||||
};
|
||||
}
|
@ -66,6 +66,7 @@ mapAliases (rec {
|
||||
firefox-esr-wrapper = firefox-esr; # 2016-01
|
||||
firefox-wrapper = firefox; # 2016-01
|
||||
firefoxWrapper = firefox; # 2015-09
|
||||
font-awesome-ttf = font-awesome_4; # 2018-02-25
|
||||
foomatic_filters = foomatic-filters; # 2016-08
|
||||
fuse_exfat = exfat; # 2015-09-11
|
||||
gettextWithExpat = gettext; # 2016-02-19
|
||||
|
@ -14027,7 +14027,8 @@ with pkgs;
|
||||
|
||||
fira-mono = callPackage ../data/fonts/fira-mono { };
|
||||
|
||||
font-awesome-ttf = callPackage ../data/fonts/font-awesome-ttf { };
|
||||
font-awesome_4 = callPackage ../data/fonts/font-awesome-4 { };
|
||||
font-awesome_5 = callPackage ../data/fonts/font-awesome-5 { };
|
||||
|
||||
freefont_ttf = callPackage ../data/fonts/freefont-ttf { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user