From f1d5d212713455bab527357f781573f0afc41228 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 18 Jul 2020 04:20:00 -0500 Subject: [PATCH] barlow: init at 1.422 --- pkgs/data/fonts/barlow/default.nix | 28 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/data/fonts/barlow/default.nix diff --git a/pkgs/data/fonts/barlow/default.nix b/pkgs/data/fonts/barlow/default.nix new file mode 100644 index 000000000000..e9257260ea2c --- /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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9b69ffe9b276..b2b16bbbdb90 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18095,6 +18095,8 @@ in bakoma_ttf = callPackage ../data/fonts/bakoma-ttf { }; + barlow = callPackage ../data/fonts/barlow { }; + bgnet = callPackage ../data/documentation/bgnet { }; bibata-cursors = callPackage ../data/icons/bibata-cursors { };