diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2022-03-11 12:01:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-11 12:01:55 +0000 |
commit | ed2c56a3c52aa592ded234cb3992e588388ebb7f (patch) | |
tree | dc49433aabeb37270abaf45f94bc08f42666851d /pkgs/data | |
parent | 7a0501594d99ff7ea20c8e640dc89f71dd7c391b (diff) | |
parent | e01403d0eb67e90daf452bbf4571957336046355 (diff) |
Merge staging-next into staging
Diffstat (limited to 'pkgs/data')
-rw-r--r-- | pkgs/data/fonts/source-sans-pro/default.nix | 30 | ||||
-rw-r--r-- | pkgs/data/fonts/source-serif-pro/default.nix | 30 | ||||
-rw-r--r-- | pkgs/data/fonts/unifont/default.nix | 10 | ||||
-rw-r--r-- | pkgs/data/fonts/unifont_upper/default.nix | 4 |
4 files changed, 68 insertions, 6 deletions
diff --git a/pkgs/data/fonts/source-sans-pro/default.nix b/pkgs/data/fonts/source-sans-pro/default.nix new file mode 100644 index 0000000000000..879f5083e2351 --- /dev/null +++ b/pkgs/data/fonts/source-sans-pro/default.nix @@ -0,0 +1,30 @@ +{ lib, fetchzip }: + +# Source Sans Pro got renamed to Source Sans 3 (see +# https://github.com/adobe-fonts/source-sans/issues/192). This is the +# last version named "Pro". It is useful for backward compatibility +# with older documents/templates/etc. +let + version = "3.006"; +in fetchzip { + name = "source-sans-pro-${version}"; + + url = "https://github.com/adobe-fonts/source-sans/archive/${version}R.zip"; + + postFetch = '' + mkdir -p $out/share/fonts/{opentype,truetype,variable} + unzip -j $downloadedFile "*/OTF/*.otf" -d $out/share/fonts/opentype + unzip -j $downloadedFile "*/TTF/*.ttf" -d $out/share/fonts/truetype + unzip -j $downloadedFile "*/VAR/*.otf" -d $out/share/fonts/variable + ''; + + sha256 = "sha256-uWr/dFyLF65v0o6+oN/3RQoe4ziPspzGB1rgiBkoTYY="; + + meta = with lib; { + homepage = "https://adobe-fonts.github.io/source-sans/"; + description = "Sans serif font family for user interface environments"; + license = licenses.ofl; + platforms = platforms.all; + maintainers = with maintainers; [ ttuegel ]; + }; +} diff --git a/pkgs/data/fonts/source-serif-pro/default.nix b/pkgs/data/fonts/source-serif-pro/default.nix new file mode 100644 index 0000000000000..a4d472d608562 --- /dev/null +++ b/pkgs/data/fonts/source-serif-pro/default.nix @@ -0,0 +1,30 @@ +{ lib, fetchzip }: + +# Source Serif Pro got renamed to Source Serif 4 (see +# https://github.com/adobe-fonts/source-serif/issues/77). This is the +# last version named "Pro". It is useful for backward compatibility +# with older documents/templates/etc. +let + version = "3.001"; +in fetchzip { + name = "source-serif-pro-${version}"; + + url = "https://github.com/adobe-fonts/source-serif/releases/download/${version}R/source-serif-pro-${version}R.zip"; + + postFetch = '' + mkdir -p $out/share/fonts/{opentype,truetype,variable} + unzip -j $downloadedFile "*/OTF/*.otf" -d $out/share/fonts/opentype + unzip -j $downloadedFile "*/TTF/*.ttf" -d $out/share/fonts/truetype + unzip -j $downloadedFile "*/VAR/*.otf" -d $out/share/fonts/variable + ''; + + sha256 = "sha256-rYWk8D41QMuuSP+cQMk8ttT7uX3a7gBk4OqjA7K9udk="; + + meta = with lib; { + homepage = "https://adobe-fonts.github.io/source-serif/"; + description = "Typeface for setting text in many sizes, weights, and languages. Designed to complement Source Sans"; + license = licenses.ofl; + platforms = platforms.all; + maintainers = with maintainers; [ ttuegel ]; + }; +} diff --git a/pkgs/data/fonts/unifont/default.nix b/pkgs/data/fonts/unifont/default.nix index 44c3a23124613..6de709344b123 100644 --- a/pkgs/data/fonts/unifont/default.nix +++ b/pkgs/data/fonts/unifont/default.nix @@ -4,16 +4,18 @@ stdenv.mkDerivation rec { pname = "unifont"; - version = "14.0.01"; + version = "14.0.02"; ttf = fetchurl { - url = "mirror://gnu/unifont/${pname}-${version}/${pname}-${version}.ttf"; - sha256 = "19algkm4nnixmzshc25rjgh8gfccqinallgi86wgvkcwcmn6ccn6"; + # Unfortunately the 14.0.02 TTF file is not available on the GNU mirror. + # Restore this for next version: "mirror://gnu/unifont/${pname}-${version}/${pname}-${version}.ttf"; + url = "https://unifoundry.com/pub/unifont/${pname}-${version}/font-builds/${pname}-${version}.ttf"; + sha256 = "1c8rdk3xg6j8lrzxddd73jppfgpk253jdkch63rr7n2d7ljp9gc3"; }; pcf = fetchurl { url = "mirror://gnu/unifont/${pname}-${version}/${pname}-${version}.pcf.gz"; - sha256 = "1aj29pswi6qwpvjwncv5w3ndwy2nzli0200i6dx6f80036z8nz9i"; + sha256 = "0hcl1zihm91xwvh5ds01sybgs0j8zsrrhn4wlz5j6ji99rh797jr"; }; nativeBuildInputs = [ libfaketime fonttosfnt mkfontscale ]; diff --git a/pkgs/data/fonts/unifont_upper/default.nix b/pkgs/data/fonts/unifont_upper/default.nix index 902aba0caa242..92e274fe8ff70 100644 --- a/pkgs/data/fonts/unifont_upper/default.nix +++ b/pkgs/data/fonts/unifont_upper/default.nix @@ -1,7 +1,7 @@ { lib, fetchzip }: let - version = "14.0.01"; + version = "14.0.02"; in fetchzip rec { name = "unifont_upper-${version}"; @@ -9,7 +9,7 @@ in fetchzip rec { postFetch = "install -Dm644 $downloadedFile $out/share/fonts/truetype/unifont_upper.ttf"; - sha256 = "0sb3m2qg0ri7zmxhjvrq8n0jmxxjx8rrx9rpibh5f5fbfkibq4gm"; + sha256 = "0p1c2kkg20jqddy828yj6sxfwgv8k5gxwmg0cybalrjb0s09kcs8"; meta = with lib; { description = "Unicode font for glyphs above the Unicode Basic Multilingual Plane"; |