diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-07-18 21:44:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-18 21:44:13 -0500 |
commit | 7546f2d189a97b78839ba5c25a6b57c05ec60002 (patch) | |
tree | c9579ce8e9fddb55f3a5b4869f59f940ea6be1cb /pkgs/data/fonts | |
parent | 903a0cac04a10ca50ca461e2fad127d05b7f1419 (diff) | |
parent | f1d5d212713455bab527357f781573f0afc41228 (diff) |
Merge pull request #93442 from marsam/init-barlow
barlow: init at 1.422
Diffstat (limited to 'pkgs/data/fonts')
-rw-r--r-- | pkgs/data/fonts/barlow/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/data/fonts/barlow/default.nix b/pkgs/data/fonts/barlow/default.nix new file mode 100644 index 0000000000000..e9257260ea2c6 --- /dev/null +++ b/pkgs/data/fonts/barlow/default.nix @@ -0,0 +1,28 @@ +{ lib, fetchzip }: +let + version = "1.422"; +in +fetchzip rec { + name = "barlow-${version}"; + + url = "https://tribby.com/fonts/barlow/download/barlow-${version}.zip"; + + sha256 = "08ld4c3zq4d1px07lc64i7l8848zsc61ddy3654w2sh0hx5sm5ld"; + + postFetch = '' + mkdir -p $out/share/fonts/ + unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype + unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype + unzip -j $downloadedFile \*.eot -d $out/share/fonts/eot + unzip -j $downloadedFile \*.woff -d $out/share/fonts/woff + unzip -j $downloadedFile \*.woff2 -d $out/share/fonts/woff2 + ''; + + meta = with lib; { + description = "A grotesk variable font superfamily"; + homepage = "https://tribby.com/fonts/barlow/"; + license = licenses.ofl; + maintainers = [ maintainers.marsam ]; + platforms = platforms.all; + }; +} |