1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 09:02:46 +00:00
nixpkgs/pkgs/data/fonts/montserrat/default.nix
volth c9eb44eab3 data/fonts: cleanup
* make font derivations fixed-output where applicable
 * fix dead links
 * `stdenv.lib` -> `lib` where `stdenv` is not involved
 * remove `meta.platforms = [ unix ]` and `meta.platforms = [ linux ]` because the restriction has no sense for data packages
2019-05-13 06:03:31 +00:00

30 lines
798 B
Nix

# Originally packaged for ArchLinux.
#
# https://aur.archlinux.org/packages/ttf-montserrat/
{ lib, fetchzip }:
let
version = "1.0";
in fetchzip {
name = "montserrat-${version}";
url = "https://marvid.fr/~eeva/mirror/Montserrat.tar.gz";
postFetch = ''
tar -xzf $downloadedFile --strip-components=1
mkdir -p $out/share/fonts/montserrat
cp *.ttf $out/share/fonts/montserrat
'';
sha256 = "11sdgvhaqg59mq71aqwqp2mb428984hjxy7hd1vasia9kgk8259w";
meta = with lib; {
description = "A geometric sans serif font with extended latin support (Regular, Alternates, Subrayada)";
homepage = "https://www.fontspace.com/julieta-ulanovsky/montserrat";
license = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ scolobb ];
};
}