forked from mirrors/nixpkgs
Merge pull request #11121 from manveru/google-fonts
google-fonts: new package
This commit is contained in:
commit
d1d5f9c9c1
|
@ -402,6 +402,11 @@ lib.mapAttrs (n: v: v // { shortName = n; }) rec {
|
|||
fullName = "TCL/TK License";
|
||||
};
|
||||
|
||||
ufl = {
|
||||
fullName = "Ubuntu Font License 1.0";
|
||||
url = http://font.ubuntu.com/ufl/ubuntu-font-licence-1.0.txt;
|
||||
};
|
||||
|
||||
unfree = {
|
||||
fullName = "Unfree";
|
||||
free = false;
|
||||
|
|
26
pkgs/data/fonts/google-fonts/default.nix
Normal file
26
pkgs/data/fonts/google-fonts/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "google-fonts";
|
||||
version = "2015-11-18";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/google/fonts/archive/a26bc2b9f4ad27266c2587dc0355b3066519844a.tar.gz";
|
||||
sha256 = "1aizwzsxg30mjds1628280bs7ishgsfairnx131654gm51aihw8p";
|
||||
};
|
||||
|
||||
phases = [ "unpackPhase" "installPhase" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
find . -name "*.ttf" -exec cp -v {} $out/share/fonts/truetype \;
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://www.google.com/fontsl;
|
||||
description = "Font files available from Google Font";
|
||||
license = with licenses; [ asl20 ofl ufl ];
|
||||
platforms = platforms.all;
|
||||
maintainer = with maintainers; [ manveru ];
|
||||
};
|
||||
}
|
|
@ -1661,6 +1661,8 @@ let
|
|||
|
||||
google-cloud-sdk = callPackage ../tools/admin/google-cloud-sdk { };
|
||||
|
||||
google-fonts = callPackage ../data/fonts/google-fonts { };
|
||||
|
||||
gource = callPackage ../applications/version-management/gource { };
|
||||
|
||||
gpart = callPackage ../tools/filesystems/gpart { };
|
||||
|
|
Loading…
Reference in a new issue