From 08c6a2cd92ccd3bc1e5b7775d1488a54655d3d09 Mon Sep 17 00:00:00 2001 From: Michael Fellinger Date: Wed, 18 Nov 2015 12:04:15 +0100 Subject: [PATCH] google-fonts: init at 2015-11-18 --- lib/licenses.nix | 5 +++++ pkgs/data/fonts/google-fonts/default.nix | 26 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 33 insertions(+) create mode 100644 pkgs/data/fonts/google-fonts/default.nix diff --git a/lib/licenses.nix b/lib/licenses.nix index 107296089d0a..ebd7d56d7618 100644 --- a/lib/licenses.nix +++ b/lib/licenses.nix @@ -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; diff --git a/pkgs/data/fonts/google-fonts/default.nix b/pkgs/data/fonts/google-fonts/default.nix new file mode 100644 index 000000000000..9f14f945e353 --- /dev/null +++ b/pkgs/data/fonts/google-fonts/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ddf2f907ebca..4c36e78ebdb4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1669,6 +1669,8 @@ let google-cloud-sdk = callPackage ../tools/admin/google-cloud-sdk { }; + google-fonts = callPackage ../data/fonts/google-fonts { }; + gource = callPackage ../applications/version-management/gource { }; gparted = callPackage ../tools/misc/gparted { };