1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00

Merge pull request #19712 from peterhoeg/fontawesome-cleanup

font-awesome: use fetchFromGitHub instead of url
This commit is contained in:
Tim Steinbach 2016-10-20 09:46:50 -04:00 committed by GitHub
commit 6adde2a5d9

View file

@ -1,28 +1,30 @@
{stdenv, fetchurl, unzip}:
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "font-awesome-4.6.3";
name = "font-awesome-${version}";
version = "4.6.3";
src = fetchurl {
url = "http://fortawesome.github.io/Font-Awesome/assets/${name}.zip";
sha256 = "06d6p3rydy86hg82igra4vqglyx7bii19jj5kdyhva0d2gqv7zfn";
src = fetchFromGitHub {
owner = "FortAwesome";
repo = "Font-Awesome";
rev = "v${version}";
sha256 = "135k1xskksqzriad9zzcxa79iprldyp2bnmc22wslak0dvjz74w0";
};
buildCommand = ''
${unzip}/bin/unzip $src
mkdir -p $out/share/fonts/truetype
cp */fonts/*.ttf $out/share/fonts/truetype
cp $src/fonts/*.ttf $out/share/fonts/truetype
'';
meta = {
meta = with stdenv.lib; {
description = "Font Awesome - TTF font";
longDescription = ''
Font Awesome gives you scalable vector icons that can instantly be customized.
This package includes only the TTF font. For full CSS etc. see the project website.
'';
homepage = "http://fortawesome.github.io/Font-Awesome/";
license = stdenv.lib.licenses.ofl;
platforms = stdenv.lib.platforms.all;
maintainers = [ stdenv.lib.maintainers.abaldeau ];
license = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ abaldeau ];
};
}