3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/public-sans/default.nix

25 lines
681 B
Nix
Raw Normal View History

{ lib, fetchzip }:
2019-05-07 05:05:01 +01:00
let
version = "1.004";
2019-05-07 05:05:01 +01:00
in fetchzip rec {
name = "public-sans-${version}";
url = "https://github.com/uswds/public-sans/releases/download/v${version}/public-sans-v${version}.zip";
postFetch = ''
mkdir -p $out/share
unzip $downloadedFile fonts/{otf,variable}/\*.\[ot\]tf -d $out/share/
'';
sha256 = "1d9ll6gvvlmlykv868lq7xmwldlfjp94k0rjqifipg3q1qv051lg";
2019-05-07 05:05:01 +01:00
meta = with lib; {
2019-05-07 05:05:01 +01:00
description = "A strong, neutral, principles-driven, open source typeface for text or display";
homepage = https://public-sans.digital.gov/;
license = licenses.ofl;
maintainers = with maintainers; [ dtzWill ];
platforms = platforms.all;
};
}