From 81f0eaa61f17460551d24c23e0e298eda94cfb2b Mon Sep 17 00:00:00 2001 From: Sergiu Ivanov Date: Sat, 27 Feb 2016 23:22:50 +0100 Subject: [PATCH] montserrat: init at 1.0 --- pkgs/data/fonts/montserrat/default.nix | 28 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/data/fonts/montserrat/default.nix diff --git a/pkgs/data/fonts/montserrat/default.nix b/pkgs/data/fonts/montserrat/default.nix new file mode 100644 index 000000000000..70fd2060ff1e --- /dev/null +++ b/pkgs/data/fonts/montserrat/default.nix @@ -0,0 +1,28 @@ +# Originally packaged for ArchLinux. +# +# https://aur.archlinux.org/packages/ttf-montserrat/ + +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "montserrat-${version}"; + version = "1.0"; + + src = fetchurl { + url = "http://marvid.fr/~eeva/mirror/Montserrat.tar.gz"; + sha256 = "12yn651kxi5fcbpdxhapg5fpri291mgcfc1kx7ymg53nrl11nj3x"; + }; + + installPhase = '' + mkdir -p $out/share/fonts/montserrat + cp *.ttf $out/share/fonts/montserrat + ''; + + meta = with stdenv.lib; { + description = "A geometric sans serif font with extended latin support (Regular, Alternates, Subrayada)"; + homepage = "http://www.fontspace.com/julieta-ulanovsky/montserrat"; + license = licenses.ofl; + platforms = platforms.all; + maintainers = with maintainers; [ scolobb ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dad5b87eaec8..2dcf2685d307 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11220,6 +11220,8 @@ let mobile_broadband_provider_info = callPackage ../data/misc/mobile-broadband-provider-info { }; + montserrat = callPackage ../data/fonts/montserrat { }; + mph_2b_damase = callPackage ../data/fonts/mph-2b-damase { }; mplus-outline-fonts = callPackage ../data/fonts/mplus-outline-fonts { };