uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
43
pkgs/data/documentation/anarchism/default.nix
Normal file
43
pkgs/data/documentation/anarchism/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ lib, stdenv, fetchFromGitLab, xdg-utils }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "anarchism";
|
||||
version = "15.3-1";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "salsa.debian.org";
|
||||
owner = "debian";
|
||||
repo = pname;
|
||||
rev = "debian/${version}";
|
||||
sha256 = "04ylk0y5b3jml2awmyz7m1hnymni8y1n83m0k6ychdh0px8frhm5";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace debian/anarchism.desktop \
|
||||
--replace "/usr/bin/xdg-open" "${xdg-utils}/bin/xdg-open"
|
||||
substituteInPlace debian/anarchism.desktop \
|
||||
--replace "file:///usr" "file://$out"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/doc/anarchism $out/share/applications $out/share/icons/hicolor/scalable/apps
|
||||
cp -r {html,markdown} $out/share/doc/anarchism
|
||||
cp debian/anarchism.svg $out/share/icons/hicolor/scalable/apps
|
||||
cp debian/anarchism.desktop $out/share/applications
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://www.anarchistfaq.org/";
|
||||
changelog = "http://anarchism.pageabode.com/afaq/new.html";
|
||||
description = "Exhaustive exploration of Anarchist theory and practice";
|
||||
longDescription = ''
|
||||
The Anarchist FAQ is an excellent source of information regarding Anarchist
|
||||
(libertarian socialist) theory and practice. It covers all major topics,
|
||||
from the basics of Anarchism to very specific discussions of politics,
|
||||
social organization, and economics.
|
||||
'';
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ davidak ];
|
||||
platforms = with platforms; all;
|
||||
};
|
||||
}
|
||||
35
pkgs/data/documentation/bgnet/default.nix
Normal file
35
pkgs/data/documentation/bgnet/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ stdenv, lib, fetchFromGitHub, python3, pandoc }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "bgnet";
|
||||
# to be found in the Makefile
|
||||
version = "3.1.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "beejjorgensen";
|
||||
repo = "bgnet";
|
||||
rev = "782a785a35d43c355951b8151628d7c64e4d0346";
|
||||
sha256 = "19w0r3zr71ydd29amqwn8q3npgrpy5kkshyshyji2hw5hky6iy92";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
# build scripts need some love
|
||||
patchShebangs bin/preproc
|
||||
|
||||
make -C src bgnet.html
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -Dm644 src/bgnet.html $out/share/doc/bgnet/html/index.html
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ python3 pandoc ];
|
||||
|
||||
meta = {
|
||||
description = "Beej’s Guide to Network Programming";
|
||||
homepage = "https://beej.us/guide/bgnet/";
|
||||
license = lib.licenses.unfree;
|
||||
|
||||
maintainers = with lib.maintainers; [ Profpatsch ];
|
||||
};
|
||||
}
|
||||
9
pkgs/data/documentation/execline-man-pages/default.nix
Normal file
9
pkgs/data/documentation/execline-man-pages/default.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ lib, buildManPages }:
|
||||
|
||||
buildManPages {
|
||||
pname = "execline-man-pages";
|
||||
version = "2.8.1.0.4";
|
||||
sha256 = "1cxi09dlzvjbilmzgmr3xvwvx0l3s1874k3gr85kbjnvp1c1r6cd";
|
||||
description = "Port of the documentation for the execline suite to mdoc";
|
||||
maintainers = [ lib.maintainers.sternenseemann ];
|
||||
}
|
||||
41
pkgs/data/documentation/gnome-user-docs/default.nix
Normal file
41
pkgs/data/documentation/gnome-user-docs/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ lib, stdenv
|
||||
, fetchurl
|
||||
, gettext
|
||||
, gnome
|
||||
, itstool
|
||||
, libxml2
|
||||
, yelp-tools
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gnome-user-docs";
|
||||
version = "42.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/gnome-user-docs/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "srJ9oEEAu90vTw5bw48tBW2V+jZWcgFj9kNqMWfV6QU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
gettext
|
||||
itstool
|
||||
libxml2
|
||||
yelp-tools
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru = {
|
||||
updateScript = gnome.updateScript {
|
||||
packageName = pname;
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "User and system administration help for the GNOME desktop";
|
||||
homepage = "https://help.gnome.org/users/gnome-help/";
|
||||
license = licenses.cc-by-30;
|
||||
maintainers = teams.gnome.members;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
40
pkgs/data/documentation/linux-manual/default.nix
Normal file
40
pkgs/data/documentation/linux-manual/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, stdenv, fetchurl, perl, linuxPackages_latest }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "linux-manual";
|
||||
inherit (linuxPackages_latest.kernel) version src;
|
||||
|
||||
nativeBuildInputs = [ perl ];
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs --build \
|
||||
scripts/kernel-doc \
|
||||
scripts/split-man.pl
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mandir=$out/share/man/man9
|
||||
mkdir -p $mandir
|
||||
|
||||
KBUILD_BUILD_TIMESTAMP=$(stat -c %Y Makefile) \
|
||||
grep -F -l -Z \
|
||||
--exclude-dir Documentation \
|
||||
--exclude-dir tools \
|
||||
-R '/**' \
|
||||
| xargs -0 -n 256 -P $NIX_BUILD_CORES \
|
||||
$SHELL -c '{ scripts/kernel-doc -man "$@" || :; } \
|
||||
| scripts/split-man.pl '$mandir kernel-doc
|
||||
|
||||
test -f $mandir/kmalloc.9
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://kernel.org/";
|
||||
description = "Linux kernel API manual pages";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ mvs ];
|
||||
};
|
||||
}
|
||||
27
pkgs/data/documentation/man-pages-posix/default.nix
Normal file
27
pkgs/data/documentation/man-pages-posix/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{lib, stdenv, fetchurl}:
|
||||
|
||||
let
|
||||
year = "2017";
|
||||
minor = "a";
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "man-pages-posix";
|
||||
version = "${year}${minor}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/docs/man-pages/man-pages-posix/${pname}-${year}-${minor}.tar.xz";
|
||||
sha256 = "ce67bb25b5048b20dad772e405a83f4bc70faf051afa289361c81f9660318bc3";
|
||||
};
|
||||
|
||||
makeFlags = [
|
||||
"MANDIR=${placeholder "out"}/share/man"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "POSIX man-pages (0p, 1p, 3p)";
|
||||
homepage = "https://www.kernel.org/doc/man-pages/";
|
||||
platforms = lib.platforms.unix;
|
||||
maintainers = [ lib.maintainers.sternenseemann ];
|
||||
};
|
||||
}
|
||||
31
pkgs/data/documentation/man-pages/default.nix
Normal file
31
pkgs/data/documentation/man-pages/default.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ lib, stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "man-pages";
|
||||
version = "5.13";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/docs/man-pages/${pname}-${version}.tar.xz";
|
||||
sha256 = "sha256-YU2uPv59/UgJhnY6KiqBeSFQMqWkUmwL5eiZol8Ja4s=";
|
||||
};
|
||||
|
||||
makeFlags = [ "prefix=$(out)" ];
|
||||
postInstall = ''
|
||||
# conflict with shadow-utils
|
||||
rm $out/share/man/man5/passwd.5 \
|
||||
$out/share/man/man3/getspnam.3
|
||||
|
||||
# The manpath executable looks up manpages from PATH. And this package won't
|
||||
# appear in PATH unless it has a /bin folder
|
||||
mkdir -p $out/bin
|
||||
'';
|
||||
outputDocdev = "out";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Linux development manual pages";
|
||||
homepage = "https://www.kernel.org/doc/man-pages/";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = with platforms; unix;
|
||||
priority = 30; # if a package comes with its own man page, prefer it
|
||||
};
|
||||
}
|
||||
42
pkgs/data/documentation/mustache-spec/default.nix
Normal file
42
pkgs/data/documentation/mustache-spec/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ stdenv, lib, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mustache-spec";
|
||||
version = "1.0.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mustache";
|
||||
repo = "mustache";
|
||||
rev = "v${version}";
|
||||
sha256 = "03xrfyjzm5ss6zkdlpl9ypwzcglspcdcnr3f94vj1rjfqm2rxcjw";
|
||||
};
|
||||
|
||||
configurePhase = "";
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/{man/man5,doc/html}
|
||||
cp man/mustache.5 $out/man/man5
|
||||
cp man/mustache.5.html $out/doc/html
|
||||
'';
|
||||
|
||||
meta = rec {
|
||||
description = "Logic-less templates, specification package";
|
||||
longDescription = ''
|
||||
Inspired by ctemplate and et, Mustache is a framework-agnostic way to
|
||||
render logic-free views.
|
||||
|
||||
Provides the specification as man page and html docs.
|
||||
|
||||
As ctemplates says, "It emphasizes separating logic from presentation: it
|
||||
is impossible to embed application logic in this template language."
|
||||
|
||||
For a list of implementations and tips, see ${homepage}.
|
||||
'';
|
||||
|
||||
homepage = "http://mustache.github.io/";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ Profpatsch ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
40
pkgs/data/documentation/nginx-doc/default.nix
Normal file
40
pkgs/data/documentation/nginx-doc/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, stdenv, libxml2, libxslt, fetchhg }:
|
||||
|
||||
# Upstream maintains documentation (sources of https://nginx.org) in separate
|
||||
# mercurial repository, which do not correspond to particular git commit, but at
|
||||
# least has "introduced in version X.Y" comments.
|
||||
#
|
||||
# In other words, documentation does not necessary matches capabilities of
|
||||
# $out/bin/nginx, but we have no better options.
|
||||
stdenv.mkDerivation {
|
||||
pname = "nginx-doc-unstable";
|
||||
version = "2022-05-05";
|
||||
src = fetchhg {
|
||||
url = "https://hg.nginx.org/nginx.org";
|
||||
rev = "a3aee2697d4e";
|
||||
sha256 = "029n4mnmjw94h01qalmjgf1c2h3h7wm798xv5knk3padxiy4m28b";
|
||||
};
|
||||
patches = [ ./exclude-google-analytics.patch ];
|
||||
nativeBuildInputs = [ libxslt libxml2 ];
|
||||
|
||||
# Generated documentation is not local-friendly, since it assumes that link to directory
|
||||
# is the same as link to index.html in that directory, which is not how browsers behave
|
||||
# with local filesystem.
|
||||
#
|
||||
# TODO: patch all relative links that do not end with .html.
|
||||
|
||||
# /en subdirectory must exist, relative links expect it.
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/doc/nginx
|
||||
mv libxslt/en $out/share/doc/nginx
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A reverse proxy and lightweight webserver (documentation)";
|
||||
homepage = "https://nginx.org/";
|
||||
license = licenses.bsd2;
|
||||
platforms = platforms.all;
|
||||
priority = 6;
|
||||
maintainers = with maintainers; [ kaction ];
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
Kill google analytics from local documentation.
|
||||
|
||||
diff -r bb0a2fbdc886 xslt/ga.xslt
|
||||
--- a/xslt/ga.xslt Mon Apr 06 11:17:11 2020 +0100
|
||||
+++ b/xslt/ga.xslt Thu Apr 09 10:29:02 2020 -0400
|
||||
@@ -6,23 +6,6 @@
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
<xsl:template name="ga">
|
||||
-
|
||||
- <script>
|
||||
- (function(w, d, s, l, i) {
|
||||
- w[l] = w[l] || [];
|
||||
- w[l].push({
|
||||
- 'gtm.start': new Date().getTime(),
|
||||
- event: 'gtm.js'
|
||||
- });
|
||||
- var f = d.getElementsByTagName(s)[0],
|
||||
- j = d.createElement(s),
|
||||
- dl = l != 'dataLayer' ? '&l=' + l : '';
|
||||
- j.async = true;
|
||||
- j.src = '//www.googletagmanager.com/gtm.js?id=' + i + dl;
|
||||
- f.parentNode.insertBefore(j, f);
|
||||
- })(window, document, 'script', 'dataLayer', 'GTM-TPSP33');
|
||||
- </script>
|
||||
-
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
9
pkgs/data/documentation/s6-man-pages/default.nix
Normal file
9
pkgs/data/documentation/s6-man-pages/default.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ lib, buildManPages }:
|
||||
|
||||
buildManPages {
|
||||
pname = "s6-man-pages";
|
||||
version = "2.11.0.1.1";
|
||||
sha256 = "03gl0vvdaqfb5hs0dfdbs9djxiyq3abcx9vwgkfw22b1rm2fa0r6";
|
||||
description = "Port of the documentation for the s6 supervision suite to mdoc";
|
||||
maintainers = [ lib.maintainers.sternenseemann ];
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
{ lib, buildManPages }:
|
||||
|
||||
buildManPages {
|
||||
pname = "s6-networking-man-pages";
|
||||
version = "2.5.1.0.1";
|
||||
sha256 = "1h87s3wixsms8ys7gvm1s9d8pzn73q5j4sgybpi3gmr55d4cwra4";
|
||||
description = "Port of the documentation for the s6-networking suite to mdoc";
|
||||
maintainers = [ lib.maintainers.sternenseemann ];
|
||||
}
|
||||
28
pkgs/data/documentation/scheme-manpages/default.nix
Normal file
28
pkgs/data/documentation/scheme-manpages/default.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "scheme-manpages-unstable";
|
||||
version = "2022-04-21";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "schemedoc";
|
||||
repo = "manpages";
|
||||
rev = "e3faaa1b80b3493ee644958a105f84f2995a0436";
|
||||
sha256 = "sha256-28e6tFRTqX/PWMhdoUZ4nQU1e/JL2uR+NjVXGBwogMM=";
|
||||
};
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/man
|
||||
cp -r man3/ man7/ $out/share/man/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Unix manual pages for R6RS and R7RS";
|
||||
homepage = "https://github.com/schemedoc/manpages";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.marsam ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
25
pkgs/data/documentation/std-man-pages/default.nix
Normal file
25
pkgs/data/documentation/std-man-pages/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ stdenv, lib, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "std-man-pages";
|
||||
version = "4.4.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gcc/libstdc++/doxygen/libstdc++-man.${version}.tar.bz2";
|
||||
sha256 = "0153py77ll759jacq41dp2z2ksr08pdcfic0rwjd6pr84dk89y9v";
|
||||
};
|
||||
|
||||
outputDevdoc = "out";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/man
|
||||
cp -R * $out/share/man
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "GCC C++ STD manual pages";
|
||||
homepage = "https://gcc.gnu.org/";
|
||||
license = with licenses; [ fdl12Plus ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
34
pkgs/data/documentation/stdman/default.nix
Normal file
34
pkgs/data/documentation/stdman/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, stdenv, curl, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "stdman";
|
||||
version = "2021.12.21";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jeaye";
|
||||
repo = "stdman";
|
||||
rev = version;
|
||||
sha256 = "sha256-wOMQzC5w8aDmxNxQ5HK8jMgoow1wXBfHGUwFBw2WiPA=";
|
||||
};
|
||||
|
||||
outputDevdoc = "out";
|
||||
|
||||
preConfigure = "
|
||||
patchShebangs ./configure
|
||||
patchShebangs ./do_install
|
||||
";
|
||||
|
||||
buildInputs = [ curl ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Formatted C++17 stdlib man pages (cppreference)";
|
||||
longDescription = "stdman is a tool that parses archived HTML
|
||||
files from cppreference and generates groff-formatted manual
|
||||
pages for Unix-based systems. The goal is to provide excellent
|
||||
formatting for easy readability.";
|
||||
homepage = "https://github.com/jeaye/stdman";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.unix;
|
||||
maintainers = [ maintainers.twey ];
|
||||
};
|
||||
}
|
||||
44
pkgs/data/documentation/zeal/default.nix
Normal file
44
pkgs/data/documentation/zeal/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib, fetchFromGitHub, cmake, extra-cmake-modules, pkg-config
|
||||
, qtbase, qtimageformats, qtwebengine, qtx11extras, mkDerivation
|
||||
, libarchive, libXdmcp, libpthreadstubs, xcbutilkeysyms }:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "zeal";
|
||||
version = "0.6.999";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zealdocs";
|
||||
repo = "zeal";
|
||||
rev = "763edca12ccd6c67e51f10891d1ced8b2510904f";
|
||||
sha256 = "sha256-1/wQXkRWvpRia8UDvvvmzHinPG8q2Tz9Uoeegej9uC8=";
|
||||
};
|
||||
|
||||
# we only need this if we are using a version that hasn't been released. We
|
||||
# could also match on the "VERSION x.y.z" bit but then it would have to be
|
||||
# updated based on whatever is the latest release, so instead just rewrite the
|
||||
# line.
|
||||
postPatch = ''
|
||||
sed -i CMakeLists.txt \
|
||||
-e 's@^project.*@project(Zeal VERSION ${version})@'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cmake extra-cmake-modules pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
qtbase qtimageformats qtwebengine qtx11extras
|
||||
libarchive
|
||||
libXdmcp libpthreadstubs xcbutilkeysyms
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple offline API documentation browser";
|
||||
longDescription = ''
|
||||
Zeal is a simple offline API documentation browser inspired by Dash (macOS
|
||||
app), available for Linux and Windows.
|
||||
'';
|
||||
homepage = "https://zealdocs.org/";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ skeidel peterhoeg ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
27
pkgs/data/fonts/3270font/default.nix
Normal file
27
pkgs/data/fonts/3270font/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ lib, fetchzip }:
|
||||
let
|
||||
version = "2.3.1";
|
||||
in
|
||||
fetchzip {
|
||||
name = "3270font-${version}";
|
||||
|
||||
url = "https://github.com/rbanffy/3270font/releases/download/v${version}/3270_fonts_3b8f2fb.zip";
|
||||
|
||||
sha256 = "06n87ydn2ayfhpg8318chmnwmdk3d4mmy65fcgf8frbiv2kpqncs";
|
||||
|
||||
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 \*.afm -d $out/share/fonts/type1
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Monospaced font based on IBM 3270 terminals";
|
||||
homepage = "https://github.com/rbanffy/3270font";
|
||||
changelog = "https://github.com/rbanffy/3270font/blob/v${version}/CHANGELOG.md";
|
||||
license = [ licenses.bsd3 licenses.ofl ];
|
||||
maintainers = [ maintainers.marsam ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
37
pkgs/data/fonts/agave/default.nix
Normal file
37
pkgs/data/fonts/agave/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ lib, fetchurl, stdenv }:
|
||||
|
||||
let
|
||||
pname = "agave";
|
||||
version = "37";
|
||||
|
||||
mkAg = name: hash: fetchurl {
|
||||
url = "https://github.com/agarick/agave/releases/download/v${version}/Agave-${name}.ttf";
|
||||
sha256 = hash;
|
||||
name = "Agave-${name}.ttf";
|
||||
};
|
||||
# There are slashed variants, but with same name so only bundle the default versions for now:
|
||||
fonts = [
|
||||
(mkAg "Regular" "sha256-vX1VhEgqy9rQ7hPmAgBGxKyIs2QSAYqZC/mL/2BIOrA=")
|
||||
(mkAg "Bold" "sha256-Ax/l/RKyc03law0ThiLac/7HHV4+YxibKzcZnjZs6VI=")
|
||||
];
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
inherit pname version;
|
||||
srcs = fonts;
|
||||
sourceRoot = ".";
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = ''
|
||||
install -D $srcs -t $out/share/fonts/truetype/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "truetype monospaced typeface designed for X environments";
|
||||
homepage = "https://b.agaric.net/page/agave";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dtzWill ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
||||
27
pkgs/data/fonts/aileron/default.nix
Normal file
27
pkgs/data/fonts/aileron/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
majorVersion = "0";
|
||||
minorVersion = "102";
|
||||
pname = "aileron";
|
||||
in
|
||||
|
||||
fetchzip {
|
||||
name = "${pname}-font-${majorVersion}.${minorVersion}";
|
||||
|
||||
url = "http://dotcolon.net/DL/font/${pname}.zip";
|
||||
sha256 = "04xnzdy9plzd2p02yq367h37m5ygx0w8cpkdv39cc3754ljlsxim";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts/opentype/${pname}
|
||||
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://dotcolon.net/font/${pname}/";
|
||||
description = "A helvetica font in nine weights";
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ leenaars ];
|
||||
license = licenses.cc0;
|
||||
};
|
||||
}
|
||||
37
pkgs/data/fonts/alegreya-sans/default.nix
Normal file
37
pkgs/data/fonts/alegreya-sans/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "alegreya-sans";
|
||||
version = "2.008";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "huertatipografica";
|
||||
repo = "Alegreya-Sans";
|
||||
rev = "v${version}";
|
||||
sha256 = "0xz5lq9fh0pj02ifazhddzh792qkxkz1z6ylj26d93wshc90jl5g";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
install -D -m 444 fonts/otf/* -t $out/share/fonts/otf
|
||||
install -D -m 444 fonts/ttf/* -t $out/share/fonts/ttf
|
||||
install -D -m 444 fonts/webfonts/*.woff -t $out/share/fonts/woff
|
||||
install -D -m 444 fonts/webfonts/*.woff2 -t $out/share/fonts/woff2
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Humanist sans serif family with a calligraphic feeling";
|
||||
longDescription = ''
|
||||
Alegreya Sans is a humanist sans serif family with a calligraphic feeling that conveys a dynamic and varied rhythm. This gives a pleasant feeling to readers of long texts.
|
||||
|
||||
The family follows humanist proportions and principles, just like the serif version of the family, Alegreya. It achieves a ludic and harmonious paragraph through elements carefully designed in an atmosphere of diversity. The italics bring a strong emphasis to the roman styles, and each have seven weights to bring you a wide typographic palette.
|
||||
|
||||
Alegreya Sans supports expert latin, greek and cyrillic character sets and provides advanced typography OpenType features such as small caps, dynamic ligatures and fractions, four set of figures, super and subscript characters, ordinals, localized accent forms for spanish, catalan, guaraní, dutch, turkish, romanian, serbian among others.
|
||||
|
||||
The Alegreya type system is a "super family", originally intended for literature, and includes sans and serif sister families.
|
||||
'';
|
||||
homepage = "https://www.huertatipografica.com/en/fonts/alegreya-sans-ht";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ Thra11 ];
|
||||
};
|
||||
}
|
||||
43
pkgs/data/fonts/alegreya/default.nix
Normal file
43
pkgs/data/fonts/alegreya/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "alegreya";
|
||||
version = "2.008";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "huertatipografica";
|
||||
repo = "Alegreya";
|
||||
rev = "v${version}";
|
||||
sha256 = "1m5xr95y6qxxv2ryvhfck39d6q5hxsr51f530fshg53x48l2mpwr";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
install -D -m 444 fonts/otf/* -t $out/share/fonts/otf
|
||||
install -D -m 444 fonts/ttf/* -t $out/share/fonts/ttf
|
||||
install -D -m 444 fonts/webfonts/*.woff -t $out/share/fonts/woff
|
||||
install -D -m 444 fonts/webfonts/*.woff2 -t $out/share/fonts/woff2
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "An elegant and versatile font family for comfortable reading";
|
||||
longDescription = ''
|
||||
Alegreya is a typeface originally intended for literature. Among its crowning characteristics, it conveys a dynamic and varied rhythm which facilitates the reading of long texts. Also, it provides freshness to the page while referring to the calligraphic letter, not as a literal interpretation, but rather in a contemporary typographic language.
|
||||
|
||||
The italic has just as much care and attention to detail in the design as the roman. The bold weights are strong, and the Black weights are really experimental for the genre. There is also a Small Caps sister family.
|
||||
|
||||
Not only does Alegreya provide great performance, but also achieves a strong and harmonious text by means of elements designed in an atmosphere of diversity.
|
||||
|
||||
The Alegreya type system is a "super family", originally intended for literature, and includes serif and sans serif sister families.
|
||||
|
||||
It supports expert latin, greek and cyrillic character sets and provides advanced typography OpenType features such as small caps, dynamic ligatures and fractions, four set of figures, super and subscript characters, ordinals, localized accent forms for spanish, catalan, guaraní, dutch, turkish, romanian, serbian among others.
|
||||
|
||||
Alegreya was chosen at the ATypI Letter2 competition in September 2011, and one of the top 14 text type systems. It was also selected in the 2nd Bienal Iberoamericana de Diseño, competition held in Madrid in 2010 and Tipos Latinos.
|
||||
|
||||
Designed by Juan Pablo del Peral for Huerta Tipográfica.
|
||||
'';
|
||||
homepage = "https://www.huertatipografica.com/en/fonts/alegreya-ht-pro";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ Thra11 ];
|
||||
};
|
||||
}
|
||||
27
pkgs/data/fonts/amiri/default.nix
Normal file
27
pkgs/data/fonts/amiri/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "0.114";
|
||||
|
||||
in fetchzip rec {
|
||||
name = "Amiri-${version}";
|
||||
|
||||
url = "https://github.com/alif-type/amiri/releases/download/${version}/${name}.zip";
|
||||
|
||||
sha256 = "sha256-6FA46j1shP0R8iEi/Xop2kXS0OKW1jaGUEOthT3Z5b4=";
|
||||
|
||||
postFetch = ''
|
||||
unzip $downloadedFile
|
||||
install -m444 -Dt $out/share/fonts/truetype ${name}/*.ttf
|
||||
install -m444 -Dt $out/share/doc/${name} ${name}/{*.txt,*.pdf}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A classical Arabic typeface in Naskh style";
|
||||
homepage = "https://www.amirifont.org/";
|
||||
license = licenses.ofl;
|
||||
maintainers = [ maintainers.vbgl ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
||||
27
pkgs/data/fonts/andagii/default.nix
Normal file
27
pkgs/data/fonts/andagii/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "1.0.2";
|
||||
in fetchzip {
|
||||
name = "andagii-${version}";
|
||||
|
||||
url = "http://www.i18nguy.com/unicode/andagii.zip";
|
||||
curlOpts = "--user-agent 'Mozilla/5.0'";
|
||||
postFetch = ''
|
||||
unzip $downloadedFile
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
cp -v ANDAGII_.TTF $out/share/fonts/truetype/andagii.ttf
|
||||
'';
|
||||
sha256 = "0j5kf2fmyqgnf5ji6h0h79lq9n9d85hkfrr4ya8hqj4gwvc0smb2";
|
||||
|
||||
# There are multiple claims that the font is GPL, so I include the
|
||||
# package; but I cannot find the original source, so use it on your
|
||||
# own risk Debian claims it is GPL - good enough for me.
|
||||
meta = with lib; {
|
||||
homepage = "http://www.i18nguy.com/unicode/unicode-font.html";
|
||||
description = "Unicode Plane 1 Osmanya script font";
|
||||
maintainers = with maintainers; [ raskin ];
|
||||
license = "unknown";
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
31
pkgs/data/fonts/andika/default.nix
Normal file
31
pkgs/data/fonts/andika/default.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "6.101";
|
||||
in
|
||||
fetchzip rec {
|
||||
name = "andika-${version}";
|
||||
|
||||
url = "https://software.sil.org/downloads/r/andika/Andika-${version}.zip";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/{doc,fonts}
|
||||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
||||
unzip -j $downloadedFile \*OFL.txt \*OFL-FAQ.txt \*README.txt \*FONTLOG.txt -d "$out/share/doc/${name}"
|
||||
'';
|
||||
|
||||
sha256 = "sha256-J/Ad+fmCMOxLoo+691LE6Bgi/l3ovIfWScwwVWtqACI=";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://software.sil.org/andika";
|
||||
description = "A family designed especially for literacy use taking into account the needs of beginning readers";
|
||||
longDescription = ''
|
||||
Andika is a sans serif, Unicode-compliant font designed especially for literacy use, taking into account the needs of beginning readers. The focus is on clear, easy-to-perceive letterforms that will not be readily confused with one another.
|
||||
|
||||
A sans serif font is preferred by some literacy personnel for teaching people to read. Its forms are simpler and less cluttered than those of most serif fonts. For years, literacy workers have had to make do with fonts that were not really suitable for beginning readers and writers. In some cases, literacy specialists have had to tediously assemble letters from a variety of fonts in order to get all of the characters they need for their particular language project, resulting in confusing and unattractive publications. Andika addresses those issues.
|
||||
'';
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.f--t ];
|
||||
};
|
||||
}
|
||||
24
pkgs/data/fonts/ankacoder/condensed.nix
Normal file
24
pkgs/data/fonts/ankacoder/condensed.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let version = "1.100"; in
|
||||
fetchzip {
|
||||
name = "ankacoder-condensed-${version}";
|
||||
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/anka-coder-fonts/AnkaCoderCondensed.${version}.zip";
|
||||
|
||||
postFetch = ''
|
||||
unzip $downloadedFile
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
cp *.ttf $out/share/fonts/truetype
|
||||
'';
|
||||
|
||||
sha256 = "0i80zpr2y9368rg2i6x8jv0g7d03kdyr5h7w9yz7pjd7i9xd8439";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Anka/Coder Condensed font";
|
||||
homepage = "https://code.google.com/archive/p/anka-coder-fonts";
|
||||
license = licenses.ofl;
|
||||
maintainers = with maintainers; [ dtzWill ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
||||
23
pkgs/data/fonts/ankacoder/default.nix
Normal file
23
pkgs/data/fonts/ankacoder/default.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let version = "1.100"; in
|
||||
fetchzip {
|
||||
name = "ankacoder-${version}";
|
||||
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/anka-coder-fonts/AnkaCoder.${version}.zip";
|
||||
|
||||
postFetch = ''
|
||||
unzip $downloadedFile
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
cp *.ttf $out/share/fonts/truetype
|
||||
'';
|
||||
|
||||
sha256 = "1jqx9micfmiarqh9xp330gl96v3vxbwzz9cmg2vi845n9md4im85";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Anka/Coder fonts";
|
||||
homepage = "https://code.google.com/archive/p/anka-coder-fonts";
|
||||
license = licenses.ofl;
|
||||
maintainers = with maintainers; [ dtzWill ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
29
pkgs/data/fonts/annapurna-sil/default.nix
Normal file
29
pkgs/data/fonts/annapurna-sil/default.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "1.204";
|
||||
in
|
||||
fetchzip rec {
|
||||
name = "annapurna-sil-${version}";
|
||||
|
||||
url = "https://software.sil.org/downloads/r/annapurna/AnnapurnaSIL-${version}.zip";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/{doc,fonts}
|
||||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
||||
unzip -j $downloadedFile \*OFL.txt \*OFL-FAQ.txt \*README.txt \*FONTLOG.txt -d "$out/share/doc/${name}"
|
||||
'';
|
||||
|
||||
sha256 = "sha256-kVeP9ZX8H+Wn6jzmH1UQvUKY6vJjadMTdEusS7LodFM=";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://software.sil.org/annapurna";
|
||||
description = "Unicode-based font family with broad support for writing systems that use the Devanagari script";
|
||||
longDescription = ''
|
||||
Annapurna SIL is a Unicode-based font family with broad support for writing systems that use the Devanagari script. Inspired by traditional calligraphic forms, the design is intended to be highly readable, reasonably compact, and visually attractive.
|
||||
'';
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.kmein ];
|
||||
};
|
||||
}
|
||||
30
pkgs/data/fonts/anonymous-pro/default.nix
Normal file
30
pkgs/data/fonts/anonymous-pro/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "1.002";
|
||||
in fetchzip rec {
|
||||
name = "anonymousPro-${version}";
|
||||
|
||||
url = "http://www.marksimonson.com/assets/content/fonts/AnonymousPro-${version}.zip";
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/{doc,fonts}
|
||||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
||||
unzip -j $downloadedFile \*.txt -d "$out/share/doc/${name}"
|
||||
'';
|
||||
sha256 = "05rgzag38qc77b31sm5i2vwwrxbrvwzfsqh3slv11skx36pz337f";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.marksimonson.com/fonts/view/anonymous-pro";
|
||||
description = "TrueType font set intended for source code";
|
||||
longDescription = ''
|
||||
Anonymous Pro (2009) is a family of four fixed-width fonts
|
||||
designed with coding in mind. Anonymous Pro features an
|
||||
international, Unicode-based character set, with support for
|
||||
most Western and Central European Latin-based languages, plus
|
||||
Greek and Cyrillic. It is designed by Mark Simonson.
|
||||
'';
|
||||
maintainers = with maintainers; [ raskin ];
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
25
pkgs/data/fonts/arkpandora/default.nix
Normal file
25
pkgs/data/fonts/arkpandora/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ fetchurl }:
|
||||
|
||||
let
|
||||
version = "2.04";
|
||||
in fetchurl {
|
||||
name = "arkpandora-${version}";
|
||||
|
||||
urls = [
|
||||
"http://distcache.FreeBSD.org/ports-distfiles/ttf-arkpandora-${version}.tgz"
|
||||
"ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ttf-arkpandora-${version}.tgz"
|
||||
"http://www.users.bigpond.net.au/gavindi/ttf-arkpandora-${version}.tgz"
|
||||
];
|
||||
downloadToTemp = true;
|
||||
recursiveHash = true;
|
||||
postFetch = ''
|
||||
tar -xzvf $downloadedFile --strip-components=1
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
cp *.ttf $out/share/fonts/truetype
|
||||
'';
|
||||
sha256 = "177k0fbs0787al0snkl8w68d2qkg7snnnq6qp28j9s98vaabs04k";
|
||||
|
||||
meta = {
|
||||
description = "Font, metrically identical to Arial and Times New Roman";
|
||||
};
|
||||
}
|
||||
55
pkgs/data/fonts/arphic/default.nix
Normal file
55
pkgs/data/fonts/arphic/default.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{ lib, fetchzip, mkfontscale, mkfontdir }:
|
||||
|
||||
let
|
||||
version = "0.2.20080216.2";
|
||||
in {
|
||||
arphic-ukai = fetchzip {
|
||||
name = "arphic-ukai-${version}";
|
||||
|
||||
url = "mirror://ubuntu/pool/main/f/fonts-arphic-ukai/fonts-arphic-ukai_${version}.orig.tar.bz2";
|
||||
|
||||
postFetch = ''
|
||||
tar -xjvf $downloadedFile --strip-components=1
|
||||
install -D -v ukai.ttc $out/share/fonts/truetype/arphic-ukai.ttc
|
||||
cd $out/share/fonts
|
||||
${mkfontdir}/bin/mkfontdir
|
||||
${mkfontscale}/bin/mkfontscale
|
||||
'';
|
||||
|
||||
sha256 = "0xi5ycm7ydzpn7cqxv1kcj9vd70nr9wn8v27hmibyjc25y2qdmzl";
|
||||
|
||||
meta = with lib; {
|
||||
description = "CJK Unicode font Kai style";
|
||||
homepage = "https://www.freedesktop.org/wiki/Software/CJKUnifonts/";
|
||||
|
||||
license = licenses.arphicpl;
|
||||
maintainers = [ maintainers.changlinli ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
};
|
||||
|
||||
arphic-uming = fetchzip {
|
||||
name = "arphic-uming-${version}";
|
||||
|
||||
url = "mirror://ubuntu/pool/main/f/fonts-arphic-uming/fonts-arphic-uming_${version}.orig.tar.bz2";
|
||||
|
||||
postFetch = ''
|
||||
tar -xjvf $downloadedFile --strip-components=1
|
||||
install -D -v uming.ttc $out/share/fonts/truetype/arphic-uming.ttc
|
||||
cd $out/share/fonts
|
||||
${mkfontdir}/bin/mkfontdir
|
||||
${mkfontscale}/bin/mkfontscale
|
||||
'';
|
||||
|
||||
sha256 = "16jybvj1cxamm682caj6nsm6l5c60x9mgchp1l2izrw2rvc8x38d";
|
||||
|
||||
meta = with lib; {
|
||||
description = "CJK Unicode font Ming style";
|
||||
homepage = "https://www.freedesktop.org/wiki/Software/CJKUnifonts/";
|
||||
|
||||
license = licenses.arphicpl;
|
||||
maintainers = [ maintainers.changlinli ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
};
|
||||
}
|
||||
26
pkgs/data/fonts/atkinson-hyperlegible/default.nix
Normal file
26
pkgs/data/fonts/atkinson-hyperlegible/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ lib, fetchFromGitHub }:
|
||||
|
||||
let
|
||||
pname = "atkinson-hyperlegible";
|
||||
version = "unstable-2021-04-29";
|
||||
in fetchFromGitHub {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
owner = "googlefonts";
|
||||
repo = "atkinson-hyperlegible";
|
||||
rev = "1cb311624b2ddf88e9e37873999d165a8cd28b46";
|
||||
sha256 = "sha256-urSTqC3rfDRM8IMG+edwKEe7NPiTuDZph3heGHzLDks=";
|
||||
|
||||
postFetch = ''
|
||||
tar xf $downloadedFile --strip=1
|
||||
install -Dm644 -t $out/share/fonts/opentype fonts/otf/*
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Typeface designed to offer greater legibility and readability for low vision readers";
|
||||
homepage = "https://brailleinstitute.org/freefont";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ zhaofengli ];
|
||||
};
|
||||
}
|
||||
22
pkgs/data/fonts/aurulent-sans/default.nix
Normal file
22
pkgs/data/fonts/aurulent-sans/default.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ lib, fetchFromGitHub }:
|
||||
|
||||
fetchFromGitHub rec {
|
||||
name = "aurulent-sans-0.1";
|
||||
owner = "deepfire";
|
||||
repo = "hartke-aurulent-sans";
|
||||
rev = name;
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts
|
||||
tar xf $downloadedFile -C $out/share/fonts --strip=1
|
||||
'';
|
||||
sha256 = "1l60psfv9x0x9qx9vp1qnhmck7a7kks385m5ycrd3d91irz1j5li";
|
||||
|
||||
meta = {
|
||||
description = "Aurulent Sans";
|
||||
longDescription = "Aurulent Sans is a humanist sans serif intended to be used as an interface font.";
|
||||
homepage = "http://delubrum.org/";
|
||||
maintainers = with lib.maintainers; [ deepfire ];
|
||||
license = lib.licenses.ofl;
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
39
pkgs/data/fonts/b612/default.nix
Normal file
39
pkgs/data/fonts/b612/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ lib, fetchFromGitHub }:
|
||||
|
||||
let
|
||||
version = "1.008";
|
||||
pname = "b612";
|
||||
in fetchFromGitHub {
|
||||
name = "${pname}-font-${version}";
|
||||
owner = "polarsys";
|
||||
repo = "b612";
|
||||
rev = version;
|
||||
postFetch = ''
|
||||
tar xf $downloadedFile --strip=1
|
||||
mkdir -p $out/share/fonts/truetype/${pname}
|
||||
cp fonts/ttf/*.ttf $out/share/fonts/truetype/${pname}
|
||||
'';
|
||||
sha256 = "0r3lana1q9w3siv8czb3p9rrb5d9svp628yfbvvmnj7qvjrmfsiq";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://b612-font.com/";
|
||||
description = "Highly legible font family for use on aircraft cockpit screens";
|
||||
longDescription = ''
|
||||
B612 is the result of a research project initiated by Airbus. The font
|
||||
was designed by Nicolas Chauveau and Thomas Paillot (intactile DESIGN) with the
|
||||
support of Jean‑Luc Vinot (ENAC). Prior research by Jean‑Luc Vinot (DGAC/DSNA)
|
||||
and Sylvie Athènes (Université de Toulouse III). The challenge for the
|
||||
"Aeronautical Font" was to improve the display of information on the cockpit
|
||||
screens, in particular in terms of legibility and comfort of reading, and to
|
||||
optimize the overall homogeneity of the cockpit.
|
||||
|
||||
Intactile DESIGN was hired to work on the design of eight typographic
|
||||
variants of the font. This one, baptized B612 in reference to the
|
||||
imaginary asteroid of the aviator Saint‑Exupéry, benefited from a complete
|
||||
hinting on all the characters.
|
||||
'';
|
||||
license = with licenses; [ ofl epl10 bsd3 ] ;
|
||||
maintainers = with maintainers; [ leenaars ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
24
pkgs/data/fonts/babelstone-han/default.nix
Normal file
24
pkgs/data/fonts/babelstone-han/default.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "13.0.3";
|
||||
in fetchzip {
|
||||
name = "babelstone-han-${version}";
|
||||
|
||||
# upstream download links are unversioned, so hash changes
|
||||
url = "https://web.archive.org/web/20200210125314/https://www.babelstone.co.uk/Fonts/Download/BabelStoneHan.zip";
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
unzip $downloadedFile '*.ttf' -d $out/share/fonts/truetype
|
||||
'';
|
||||
sha256 = "018isk3hbzsihzrxavgjbn485ngzvlm96npqx9y7zpkxsssslc4w";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Unicode CJK font with over 36000 Han characters";
|
||||
homepage = "https://www.babelstone.co.uk/Fonts/Han.html";
|
||||
|
||||
license = licenses.free;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ volth emily ];
|
||||
};
|
||||
}
|
||||
20
pkgs/data/fonts/baekmuk-ttf/default.nix
Normal file
20
pkgs/data/fonts/baekmuk-ttf/default.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ fetchzip }:
|
||||
|
||||
fetchzip rec {
|
||||
name = "baekmuk-ttf-2.2";
|
||||
|
||||
url = "http://kldp.net/baekmuk/release/865-${name}.tar.gz";
|
||||
postFetch = ''
|
||||
tar -xzvf $downloadedFile --strip-components=1
|
||||
install -m444 -Dt $out/share/fonts ttf/*.ttf
|
||||
install -m444 -Dt $out/share/doc/${name} COPYRIGHT*
|
||||
'';
|
||||
sha256 = "1jgsvack1l14q8lbcv4qhgbswi30mf045k37rl772hzcmx0r206g";
|
||||
|
||||
meta = {
|
||||
description = "Korean font";
|
||||
homepage = "http://kldp.net/projects/baekmuk/";
|
||||
license = "BSD-like";
|
||||
};
|
||||
}
|
||||
|
||||
20
pkgs/data/fonts/bakoma-ttf/default.nix
Normal file
20
pkgs/data/fonts/bakoma-ttf/default.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ fetchzip }:
|
||||
|
||||
fetchzip {
|
||||
name = "bakoma-ttf";
|
||||
|
||||
url = "http://tarballs.nixos.org/sha256/1j1y3cq6ys30m734axc0brdm2q9n2as4h32jws15r7w5fwr991km";
|
||||
|
||||
postFetch = ''
|
||||
tar xjvf $downloadedFile --strip-components=1
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
cp ttf/*.ttf $out/share/fonts/truetype
|
||||
'';
|
||||
|
||||
sha256 = "0g7i723n00cqx2va05z1h6v3a2ar69gqw4hy6pjj7m0ml906rngc";
|
||||
|
||||
meta = {
|
||||
description = "TrueType versions of the Computer Modern and AMS TeX Fonts";
|
||||
homepage = "http://www.ctan.org/tex-archive/fonts/cm/ps-type1/bakoma/ttf/";
|
||||
};
|
||||
}
|
||||
28
pkgs/data/fonts/barlow/default.nix
Normal file
28
pkgs/data/fonts/barlow/default.nix
Normal file
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
25
pkgs/data/fonts/behdad-fonts/default.nix
Normal file
25
pkgs/data/fonts/behdad-fonts/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ lib, fetchFromGitHub }:
|
||||
|
||||
let
|
||||
pname = "behdad-fonts";
|
||||
version = "0.0.3";
|
||||
in fetchFromGitHub {
|
||||
name = "${pname}-${version}";
|
||||
owner = "font-store";
|
||||
repo = "BehdadFont";
|
||||
rev = "v${version}";
|
||||
|
||||
postFetch = ''
|
||||
tar xf $downloadedFile --strip=1
|
||||
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/behrad-fonts {} \;
|
||||
'';
|
||||
sha256 = "0c57232462cv1jrfn0m2bl7jzcfkacirrdd2qimrc8iqhkz0ajfz";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/font-store/BehdadFont";
|
||||
description = "A Persian/Arabic Open Source Font";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
26
pkgs/data/fonts/borg-sans-mono/default.nix
Normal file
26
pkgs/data/fonts/borg-sans-mono/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
pname = "borg-sans-mono";
|
||||
version = "0.2.0";
|
||||
in
|
||||
fetchzip {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
# https://github.com/marnen/borg-sans-mono/issues/19
|
||||
url = "https://github.com/marnen/borg-sans-mono/files/107663/BorgSansMono.ttf.zip";
|
||||
sha256 = "1gz4ab0smw76ih5cs2l3n92c77nv7ld5zghq42avjsfhxrc2n5ri";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts
|
||||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Droid Sans Mono Slashed + Hasklig-style ligatures";
|
||||
homepage = "https://github.com/marnen/borg-sans-mono";
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ atila ];
|
||||
};
|
||||
}
|
||||
26
pkgs/data/fonts/bront/default.nix
Normal file
26
pkgs/data/fonts/bront/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ stdenvNoCC, lib, fetchFromGitHub }:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "bront_fonts";
|
||||
version = "unstable-2015-06-28";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "chrismwendt";
|
||||
repo = "bront";
|
||||
rev = "aef23d9a11416655a8351230edb3c2377061c077";
|
||||
sha256 = "1sx2gv19pgdyccb38sx3qnwszksmva7pqa1c8m35s6cipgjhhgb4";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
install -m444 -Dt $out/share/fonts/truetype *Bront.ttf
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Bront Fonts";
|
||||
longDescription = "Ubuntu Mono Bront and DejaVu Sans Mono Bront fonts.";
|
||||
homepage = "https://github.com/chrismwendt/bront";
|
||||
license = licenses.free;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.grburst ];
|
||||
};
|
||||
}
|
||||
37
pkgs/data/fonts/cabin/default.nix
Normal file
37
pkgs/data/fonts/cabin/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ lib, fetchFromGitHub }:
|
||||
|
||||
fetchFromGitHub rec {
|
||||
name = "cabin-1.005";
|
||||
|
||||
owner = "impallari";
|
||||
repo = "Cabin";
|
||||
rev = "982839c790e9dc57c343972aa34c51ed3b3677fd";
|
||||
|
||||
postFetch = ''
|
||||
tar xf $downloadedFile --strip=1
|
||||
install -m444 -Dt $out/share/fonts/opentype fonts/OTF/*.otf
|
||||
install -m444 -Dt $out/share/doc/${name} README.md FONTLOG.txt
|
||||
'';
|
||||
|
||||
sha256 = "1bl7h217m695jn4rbniialfk573aa44fslp2rjxnhkicakpcm44h";
|
||||
|
||||
meta = with lib; {
|
||||
description = "A humanist sans with 4 weights and true italics";
|
||||
longDescription = ''
|
||||
The Cabin font family is a humanist sans with 4 weights and true italics,
|
||||
inspired by Edward Johnston’s and Eric Gill’s typefaces, with a touch of
|
||||
modernism. Cabin incorporates modern proportions, optical adjustments, and
|
||||
some elements of the geometric sans. It remains true to its roots, but has
|
||||
its own personality.
|
||||
|
||||
The weight distribution is almost monotone, although top and bottom curves
|
||||
are slightly thin. Counters of the b, g, p and q are rounded and optically
|
||||
adjusted. The curved stem endings have a 10 degree angle. E and F have
|
||||
shorter center arms. M is splashed.
|
||||
'';
|
||||
homepage = "http://www.impallari.com/cabin";
|
||||
license = licenses.ofl;
|
||||
maintainers = with maintainers; [ cmfwyp ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
18
pkgs/data/fonts/caladea/cambria-alias.conf
Normal file
18
pkgs/data/fonts/caladea/cambria-alias.conf
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
||||
<fontconfig>
|
||||
<!-- Configure Caladea as a metric-compatible alias for the
|
||||
Microsoft Cambria font family. -->
|
||||
<alias binding="same">
|
||||
<family>Cambria</family>
|
||||
<accept>
|
||||
<family>Caladea</family>
|
||||
</accept>
|
||||
</alias>
|
||||
<alias binding="same">
|
||||
<family>Caladea</family>
|
||||
<default>
|
||||
<family>Cambria</family>
|
||||
</default>
|
||||
</alias>
|
||||
</fontconfig>
|
||||
37
pkgs/data/fonts/caladea/default.nix
Normal file
37
pkgs/data/fonts/caladea/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "20130214";
|
||||
in fetchzip {
|
||||
name = "caladea-${version}";
|
||||
|
||||
url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-${version}.tar.gz";
|
||||
postFetch = ''
|
||||
tar -xzvf $downloadedFile --strip-components=1
|
||||
mkdir -p $out/etc/fonts/conf.d
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
cp -v *.ttf $out/share/fonts/truetype
|
||||
cp -v ${./cambria-alias.conf} $out/etc/fonts/conf.d/30-cambria.conf
|
||||
'';
|
||||
sha256 = "0kwm42ggr8kvcn3554cpmv90xzam1sdncx7x3zs3bzp88mxrnv1z";
|
||||
|
||||
meta = with lib; {
|
||||
# This font doesn't appear to have any official web site but this
|
||||
# one provides some good information and samples.
|
||||
homepage = "http://openfontlibrary.org/en/font/caladea";
|
||||
description = "A serif font metric-compatible with Microsoft Cambria";
|
||||
longDescription = ''
|
||||
Caladea is a free font that is metric-compatible with the
|
||||
Microsoft Cambria font. Developed by Carolina Giovagnoli and
|
||||
Andrés Torresi at Huerta Tipográfica foundry.
|
||||
'';
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.all;
|
||||
maintainers = [maintainers.rycee];
|
||||
|
||||
# Reduce the priority of this package. The intent is that if you
|
||||
# also install the `vista-fonts` package, then you probably will
|
||||
# not want to install the font alias of this package.
|
||||
priority = 10;
|
||||
};
|
||||
}
|
||||
24
pkgs/data/fonts/camingo-code/default.nix
Normal file
24
pkgs/data/fonts/camingo-code/default.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "1.0";
|
||||
in fetchzip rec {
|
||||
name = "camingo-code-${version}";
|
||||
|
||||
url = "https://github.com/chrissimpkins/codeface/releases/download/font-collection/codeface-fonts.zip";
|
||||
postFetch = ''
|
||||
install -Dm644 $out/camingo-code/*.ttf -t $out/share/fonts/truetype
|
||||
install -Dm644 $out/camingo-code/*.txt -t $out/share/doc/${name}
|
||||
shopt -s extglob dotglob
|
||||
rm -rf $out/!(share)
|
||||
shopt -u extglob dotglob
|
||||
'';
|
||||
sha256 = "sha256-/vDNuR034stmiCZ9jUH5DlTQJn0WccLY5treoziXOJo=";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.myfonts.com/fonts/jan-fromm/camingo-code/";
|
||||
description = "A monospaced typeface designed for source-code editors";
|
||||
platforms = platforms.all;
|
||||
license = licenses.cc-by-nd-30;
|
||||
};
|
||||
}
|
||||
57
pkgs/data/fonts/cantarell-fonts/default.nix
Normal file
57
pkgs/data/fonts/cantarell-fonts/default.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, meson
|
||||
, ninja
|
||||
, python3
|
||||
, gettext
|
||||
, appstream-glib
|
||||
, gnome
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cantarell-fonts";
|
||||
version = "0.303.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "+UY6BlnGPlfjgf3XU88ZKSJTlcW0kTWYlCR2GDBTBBE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
python3
|
||||
python3.pkgs.psautohint
|
||||
python3.pkgs.cffsubr
|
||||
python3.pkgs.statmake
|
||||
python3.pkgs.ufo2ft
|
||||
python3.pkgs.setuptools
|
||||
python3.pkgs.ufoLib2
|
||||
gettext
|
||||
appstream-glib
|
||||
];
|
||||
|
||||
# ad-hoc fix for https://github.com/NixOS/nixpkgs/issues/50855
|
||||
# until we fix gettext's envHook
|
||||
preBuild = ''
|
||||
export GETTEXTDATADIRS="$GETTEXTDATADIRS_FOR_BUILD"
|
||||
'';
|
||||
|
||||
outputHashAlgo = "sha256";
|
||||
outputHashMode = "recursive";
|
||||
outputHash = "XeqHVdTQ7PTzxkjwfzS/BTR7+k/M69sfUKdRXGOTmZE=";
|
||||
|
||||
passthru = {
|
||||
updateScript = gnome.updateScript {
|
||||
packageName = pname;
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Default typeface used in the user interface of GNOME since version 3.0";
|
||||
platforms = lib.platforms.all;
|
||||
license = lib.licenses.ofl;
|
||||
maintainers = with lib.maintainers; [ ];
|
||||
};
|
||||
}
|
||||
18
pkgs/data/fonts/carlito/calibri-alias.conf
Normal file
18
pkgs/data/fonts/carlito/calibri-alias.conf
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
||||
<fontconfig>
|
||||
<!-- Configure Carlito as a metric-compatible alias for the
|
||||
Microsoft Calibri font family. -->
|
||||
<alias binding="same">
|
||||
<family>Calibri</family>
|
||||
<accept>
|
||||
<family>Carlito</family>
|
||||
</accept>
|
||||
</alias>
|
||||
<alias binding="same">
|
||||
<family>Carlito</family>
|
||||
<default>
|
||||
<family>Calibri</family>
|
||||
</default>
|
||||
</alias>
|
||||
</fontconfig>
|
||||
39
pkgs/data/fonts/carlito/default.nix
Normal file
39
pkgs/data/fonts/carlito/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "20130920";
|
||||
in fetchzip {
|
||||
name = "carlito-${version}";
|
||||
|
||||
url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-carlito-${version}.tar.gz";
|
||||
|
||||
postFetch = ''
|
||||
tar -xzvf $downloadedFile --strip-components=1
|
||||
mkdir -p $out/etc/fonts/conf.d
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
cp -v *.ttf $out/share/fonts/truetype
|
||||
cp -v ${./calibri-alias.conf} $out/etc/fonts/conf.d/30-calibri.conf
|
||||
'';
|
||||
|
||||
sha256 = "0d72zy6kdmxgpi63r3yvi3jh1hb7lvlgv8hgd4ag0x10dz18mbzv";
|
||||
|
||||
meta = with lib; {
|
||||
# This font doesn't appear to have any official web site but this
|
||||
# one provides some good information and samples.
|
||||
homepage = "http://openfontlibrary.org/en/font/carlito";
|
||||
description = "A sans-serif font metric-compatible with Microsoft Calibri";
|
||||
longDescription = ''
|
||||
Carlito is a free font that is metric-compatible with the
|
||||
Microsoft Calibri font. The font is designed by Łukasz Dziedzic
|
||||
of the tyPoland foundry and based his Lato font.
|
||||
'';
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = [maintainers.rycee];
|
||||
|
||||
# Reduce the priority of this package. The intent is that if you
|
||||
# also install the `vista-fonts` package, then you probably will
|
||||
# not want to install the font alias of this package.
|
||||
priority = 10;
|
||||
};
|
||||
}
|
||||
26
pkgs/data/fonts/cascadia-code/default.nix
Normal file
26
pkgs/data/fonts/cascadia-code/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ lib, fetchzip }:
|
||||
let
|
||||
version = "2111.01";
|
||||
in
|
||||
fetchzip {
|
||||
name = "cascadia-code-${version}";
|
||||
|
||||
url = "https://github.com/microsoft/cascadia-code/releases/download/v${version}/CascadiaCode-${version}.zip";
|
||||
|
||||
sha256 = "sha256-kUVTQ/oMZztNf22sDbQBpQW0luSc5nr5sxWU5etLDec=";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts/
|
||||
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
||||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Monospaced font that includes programming ligatures and is designed to enhance the modern look and feel of the Windows Terminal";
|
||||
homepage = "https://github.com/microsoft/cascadia-code";
|
||||
changelog = "https://github.com/microsoft/cascadia-code/raw/v${version}/FONTLOG.txt";
|
||||
license = licenses.ofl;
|
||||
maintainers = [ maintainers.marsam ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
32
pkgs/data/fonts/ccsymbols/default.nix
Normal file
32
pkgs/data/fonts/ccsymbols/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ lib, fetchurl, unzip }:
|
||||
|
||||
let
|
||||
pname = "ccsymbols";
|
||||
version = "2020-04-19";
|
||||
in
|
||||
|
||||
fetchurl rec {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
url = "https://www.ctrl.blog/file/${version}_cc-symbols.zip";
|
||||
sha256 = "sha256-mrNgTS6BAVJrIz9fHOjf8pkSbZtZ55UjyoL9tQ1fiA8=";
|
||||
recursiveHash = true;
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
|
||||
downloadToTemp = true;
|
||||
postFetch = ''
|
||||
mkdir -p "$out/share/fonts/ccsymbols"
|
||||
unzip -d "$out/share/fonts/ccsymbols" "$downloadedFile"
|
||||
'';
|
||||
|
||||
passthru = { inherit pname version; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "Creative Commons symbol font";
|
||||
homepage = "https://www.ctrl.blog/entry/creative-commons-unicode-fallback-font.html";
|
||||
maintainers = with maintainers; [ qyliss ];
|
||||
license = licenses.publicDomain;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
31
pkgs/data/fonts/charis-sil/default.nix
Normal file
31
pkgs/data/fonts/charis-sil/default.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "6.101";
|
||||
in
|
||||
fetchzip rec {
|
||||
name = "charis-sil-${version}";
|
||||
|
||||
url = "https://software.sil.org/downloads/r/charis/CharisSIL-${version}.zip";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/{doc,fonts}
|
||||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
||||
unzip -j $downloadedFile \*OFL.txt \*OFL-FAQ.txt \*README.txt \*FONTLOG.txt -d "$out/share/doc/${name}"
|
||||
'';
|
||||
|
||||
sha256 = "sha256-b1ms9hJ6IPe7W6O9KgzHZvwT4/nAoLOhdydcUrwNfnU=";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://software.sil.org/charis";
|
||||
description = "A family of highly readable fonts for broad multilingual use";
|
||||
longDescription = ''
|
||||
This Charis SIL font is essentially the same design as the SIL Charis font first released by SIL in 1997. Charis is similar to Bitstream Charter, one of the first fonts designed specifically for laser printers. It is highly readable and holds up well in less-than-ideal reproduction environments. It also has a full set of styles – regular, italic, bold, bold italic. Charis is a serif, proportionally-spaced font optimized for readability in long printed documents.
|
||||
|
||||
The goal for this product was to provide a single Unicode-based font family that would contain a comprehensive inventory of glyphs needed for almost any Roman- or Cyrillic-based writing system, whether used for phonetic or orthographic needs. In addition, there is provision for other characters and symbols useful to linguists. This font makes use of state-of-the-art font technologies to support complex typographic issues, such as the need to position arbitrary combinations of base glyphs and diacritics optimally.
|
||||
'';
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.f--t ];
|
||||
};
|
||||
}
|
||||
37
pkgs/data/fonts/cherry/default.nix
Normal file
37
pkgs/data/fonts/cherry/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ lib, stdenv, fetchFromGitHub, fonttosfnt, mkfontdir }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cherry";
|
||||
version = "1.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "turquoise-hexagon";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "13zkxwp6r6kcxv4x459vwscr0n0sik4a3kcz5xnmlpvcdnbxi586";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ fonttosfnt mkfontdir ];
|
||||
|
||||
buildPhase = ''
|
||||
patchShebangs make.sh
|
||||
./make.sh
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts/misc
|
||||
cp *.otb $out/share/fonts/misc
|
||||
|
||||
# create fonts.dir so NixOS xorg module adds to fp
|
||||
mkfontdir $out/share/fonts/misc
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "cherry font";
|
||||
homepage = "https://github.com/turquoise-hexagon/cherry";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dtzWill ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
||||
41
pkgs/data/fonts/chonburi/default.nix
Normal file
41
pkgs/data/fonts/chonburi/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "chonburi";
|
||||
version = "unstable-2021-09-15";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cadsondemak";
|
||||
repo = pname;
|
||||
rev = "daf26bf77d82fba50eaa3aa3fad905cb9f6b5e28";
|
||||
sha256 = "sha256-oC7ZCfNOyvGtqT9+Ap/CfCHzdWNzeCuac2dJ9fctgB8=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/doc/chonburi $out/share/fonts/{opentype,truetype}
|
||||
|
||||
cp $src/OFL.txt $src/BRIEF.md $out/share/doc/chonburi
|
||||
cp $src/fonts/*.otf $out/share/fonts/opentype
|
||||
cp $src/fonts/*.ttf $out/share/fonts/truetype
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://cadsondemak.github.io/chonburi/";
|
||||
description = "A Didonic Thai and Latin display typeface";
|
||||
longDescription = ''
|
||||
The objective of this project is to create a Thai and Latin Display
|
||||
typeface. Chonburi is a display typeface with high contrast in a Didone
|
||||
style. This single-weight typeface provides advance typographical support
|
||||
with features such as discretionary ligature. This font can be extended
|
||||
the family to other weights including both narrow and extended version. It
|
||||
is also ready to be matched with other non-Latin script.
|
||||
'';
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.toastal ];
|
||||
};
|
||||
}
|
||||
34
pkgs/data/fonts/clearlyU/default.nix
Normal file
34
pkgs/data/fonts/clearlyU/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, stdenv, fetchurl, fonttosfnt, mkfontscale, libfaketime }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "clearlyU";
|
||||
version = "12-1.9";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.math.nmsu.edu/~mleisher/Software/cu/cu${version}.tgz";
|
||||
sha256 = "1xn14jbv3m1khy7ydvad9ydkn7yygdbhjy9wm1v000jzjwr3lv21";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ fonttosfnt mkfontscale libfaketime ];
|
||||
|
||||
buildPhase = ''
|
||||
# convert bdf fonts to otb
|
||||
for i in *.bdf; do
|
||||
name=$(basename "$i" .bdf)
|
||||
faketime -f "1970-01-01 00:00:01" fonttosfnt -g 2 -m 2 -v -o "$name.otb" "$i"
|
||||
done
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
# install otb and bdf fonts
|
||||
fontDir="$out/share/fonts"
|
||||
install -m 644 -D *.bdf *.otb -t "$fontDir"
|
||||
mkfontdir "$fontDir"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Unicode font";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.raskin ];
|
||||
};
|
||||
}
|
||||
25
pkgs/data/fonts/cm-unicode/default.nix
Normal file
25
pkgs/data/fonts/cm-unicode/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "0.7.0";
|
||||
in fetchzip rec {
|
||||
name = "cm-unicode-${version}";
|
||||
|
||||
url = "mirror://sourceforge/cm-unicode/cm-unicode/${version}/${name}-otf.tar.xz";
|
||||
|
||||
postFetch = ''
|
||||
tar -xJvf $downloadedFile --strip-components=1
|
||||
install -m444 -Dt $out/share/fonts/opentype *.otf
|
||||
install -m444 -Dt $out/share/doc/${name} README FontLog.txt
|
||||
'';
|
||||
|
||||
sha256 = "1rzz7yhqq3lljyqxbg46jfzfd09qgpgx865lijr4sgc94riy1ypn";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://cm-unicode.sourceforge.io/";
|
||||
description = "Computer Modern Unicode fonts";
|
||||
maintainers = with maintainers; [ raskin rycee ];
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
26
pkgs/data/fonts/cnstrokeorder/default.nix
Normal file
26
pkgs/data/fonts/cnstrokeorder/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ lib, fetchurl }:
|
||||
|
||||
let
|
||||
version = "0.0.4.7";
|
||||
in fetchurl {
|
||||
name = "cnstrokeorder-${version}";
|
||||
|
||||
url = "http://rtega.be/chmn/CNstrokeorder-${version}.ttf";
|
||||
|
||||
recursiveHash = true;
|
||||
downloadToTemp = true;
|
||||
|
||||
postFetch = ''
|
||||
install -D $downloadedFile $out/share/fonts/truetype/CNstrokeorder-${version}.ttf
|
||||
'';
|
||||
|
||||
sha256 = "0cizgfdgbq9av5c8234mysr2q54iw9pkxrmq5ga8gv32hxhl5bx4";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Chinese font that shows stroke order for HSK 1-4";
|
||||
homepage = "http://rtega.be/chmn/index.php?subpage=68";
|
||||
license = [ licenses.arphicpl ];
|
||||
maintainers = with maintainers; [ johnazoidberg ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
28
pkgs/data/fonts/comfortaa/default.nix
Normal file
28
pkgs/data/fonts/comfortaa/default.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ lib, fetchFromGitHub }:
|
||||
|
||||
let
|
||||
version = "2021-07-29";
|
||||
in fetchFromGitHub rec {
|
||||
name = "comfortaa-${version}";
|
||||
|
||||
owner = "googlefonts";
|
||||
repo = "comfortaa";
|
||||
rev = "2a87ac6f6ea3495150bfa00d0c0fb53dd0a2f11b";
|
||||
|
||||
postFetch = ''
|
||||
tar -xf $downloadedFile --strip=1
|
||||
mkdir -p $out/share/fonts/truetype $out/share/doc/comfortaa
|
||||
cp fonts/TTF/*.ttf $out/share/fonts/truetype
|
||||
cp FONTLOG.txt README.md $out/share/doc/comfortaa
|
||||
'';
|
||||
|
||||
sha256 = "12ad7qy11q49iv9h3l2d7x7y7kf0hxbqhclb92bzwig8dzly9n2k";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://aajohan.deviantart.com/art/Comfortaa-font-105395949";
|
||||
description = "A clean and modern font suitable for headings and logos";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = [maintainers.rycee];
|
||||
};
|
||||
}
|
||||
14
pkgs/data/fonts/comic-mono/comic-mono-weight.conf
Normal file
14
pkgs/data/fonts/comic-mono/comic-mono-weight.conf
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
||||
<fontconfig>
|
||||
<!-- Fix missing/incorrect font weight data in Comic Mono. -->
|
||||
|
||||
<match target="scan">
|
||||
<test name="fullname">
|
||||
<string>Comic Mono</string>
|
||||
</test>
|
||||
<edit name="weight">
|
||||
<const>book</const>
|
||||
</edit>
|
||||
</match>
|
||||
</fontconfig>
|
||||
35
pkgs/data/fonts/comic-mono/default.nix
Normal file
35
pkgs/data/fonts/comic-mono/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ lib, fetchFromGitHub }:
|
||||
|
||||
let
|
||||
version = "2020-12-28";
|
||||
in fetchFromGitHub {
|
||||
name = "comic-mono-font-${version}";
|
||||
|
||||
owner = "dtinth";
|
||||
repo = "comic-mono-font";
|
||||
rev = "9a96d04cdd2919964169192e7d9de5012ef66de4";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts
|
||||
tar -z -f $downloadedFile --wildcards -x \*.ttf --one-top-level=$out/share/fonts
|
||||
|
||||
mkdir -p $out/etc/fonts/conf.d
|
||||
ln -s ${./comic-mono-weight.conf} $out/etc/fonts/conf.d/30-comic-mono.conf
|
||||
'';
|
||||
|
||||
hash = "sha256-poMU+WfDZcsyWyFiiXKJ284X22CJlxQIzcJtApnIdAY=";
|
||||
|
||||
meta = with lib; {
|
||||
description = "A legible monospace font that looks like Comic Sans";
|
||||
longDescription = ''
|
||||
A legible monospace font... the very typeface you’ve been trained to
|
||||
recognize since childhood. This font is a fork of Shannon Miwa’s Comic
|
||||
Shanns (version 1).
|
||||
'';
|
||||
homepage = "https://dtinth.github.io/comic-mono-font/";
|
||||
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ an-empty-string totoroot ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
39
pkgs/data/fonts/comic-neue/default.nix
Normal file
39
pkgs/data/fonts/comic-neue/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ lib, stdenv, fetchzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "comic-neue";
|
||||
version = "2.51";
|
||||
|
||||
src = fetchzip {
|
||||
url = "http://comicneue.com/${pname}-${version}.zip";
|
||||
sha256 = "sha256-DjRZtFnJOtZnxhfpgU5ihZFAonRK608/BQztCAExIU0=";
|
||||
stripRoot = false; # because it comes with a __MACOSX directory
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -pv $out/share/{doc/${pname}-${version},fonts/{opentype,truetype,WOFF,WOFF2}}
|
||||
cp -v ${pname}-${version}/{FONTLOG,OFL-FAQ,OFL}.txt $out/share/doc/
|
||||
cp -v ${pname}-${version}/Booklet-ComicNeue.pdf $out/share/doc/
|
||||
cp -v ${pname}-${version}/OTF/ComicNeue-Angular/*.otf $out/share/fonts/opentype
|
||||
cp -v ${pname}-${version}/OTF/ComicNeue/*.otf $out/share/fonts/opentype
|
||||
cp -v ${pname}-${version}/TTF/ComicNeue-Angular/*.ttf $out/share/fonts/truetype
|
||||
cp -v ${pname}-${version}/TTF/ComicNeue/*.ttf $out/share/fonts/truetype
|
||||
cp -v ${pname}-${version}/WebFonts/*.woff $out/share/fonts/WOFF
|
||||
cp -v ${pname}-${version}/WebFonts/*.woff2 $out/share/fonts/WOFF2
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://comicneue.com/";
|
||||
description = "A casual type face: Make your lemonade stand look like a fortune 500 company";
|
||||
longDescription = ''
|
||||
ComicNeue is inspired by Comic Sans but more regular. It was
|
||||
designed by Craig Rozynski. It is available in two variants:
|
||||
Comic Neue and Comic Neue Angular. The former having round and
|
||||
the latter angular terminals. Both variants come in Light,
|
||||
Regular, and Bold weights with Oblique variants.
|
||||
'';
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.AndersonTorres ];
|
||||
};
|
||||
}
|
||||
18
pkgs/data/fonts/comic-relief/comic-sans-ms-alias.conf
Normal file
18
pkgs/data/fonts/comic-relief/comic-sans-ms-alias.conf
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
||||
<fontconfig>
|
||||
<!-- Configure Comic Relief as a metric-compatible alias for the
|
||||
Microsoft Comic Sans font family. -->
|
||||
<alias binding="same">
|
||||
<family>Comic Sans MS</family>
|
||||
<accept>
|
||||
<family>Comic Relief</family>
|
||||
</accept>
|
||||
</alias>
|
||||
<alias binding="same">
|
||||
<family>Comic Relief</family>
|
||||
<default>
|
||||
<family>Comic Sans MS</family>
|
||||
</default>
|
||||
</alias>
|
||||
</fontconfig>
|
||||
40
pkgs/data/fonts/comic-relief/default.nix
Normal file
40
pkgs/data/fonts/comic-relief/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "1.1";
|
||||
in fetchzip rec {
|
||||
name = "comic-relief-${version}";
|
||||
|
||||
url = "https://fontlibrary.org/assets/downloads/comic-relief/45c456b6db2aaf2f7f69ac66b5ac7239/comic-relief.zip";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/etc/fonts/conf.d
|
||||
mkdir -p $out/share/doc/${name}
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
cp -v ${./comic-sans-ms-alias.conf} $out/etc/fonts/conf.d/30-comic-sans-ms.conf
|
||||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
||||
unzip -j $downloadedFile FONTLOG.txt -d $out/share/doc/${name}
|
||||
'';
|
||||
|
||||
sha256 = "0dz0y7w6mq4hcmmxv6fn4mp6jkln9mzr4s96vsg68wrl5b7k9yff";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://fontlibrary.org/en/font/comic-relief";
|
||||
description = "A font metric-compatible with Microsoft Comic Sans";
|
||||
longDescription = ''
|
||||
Comic Relief is a typeface designed to be metrically equivalent
|
||||
to the popular Comic Sans MS. Comic Relief can be used in place
|
||||
of Comic Sans MS without having to move, resize, or reset any
|
||||
part of the copy. It contains all glyphs and characters
|
||||
available in Comic Sans MS.
|
||||
'';
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = [maintainers.rycee];
|
||||
|
||||
# Reduce the priority of this package. The intent is that if you
|
||||
# also install the `corefonts` package, then you probably will not
|
||||
# want to install the font alias of this package.
|
||||
priority = 10;
|
||||
};
|
||||
}
|
||||
22
pkgs/data/fonts/cooper-hewitt/default.nix
Normal file
22
pkgs/data/fonts/cooper-hewitt/default.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
fetchzip {
|
||||
name = "cooper-hewitt-2014-06-09";
|
||||
|
||||
url = "https://www.cooperhewitt.org/wp-content/uploads/fonts/CooperHewitt-OTF-public.zip";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts/opentype
|
||||
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/
|
||||
'';
|
||||
|
||||
sha256 = "01iwqmjvqkc6fmc2r0486vk06s6f51n9wxzl1pf9z48n0igj4gqd";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.cooperhewitt.org/open-source-at-cooper-hewitt/cooper-hewitt-the-typeface-by-chester-jenkins/";
|
||||
description = "A contemporary sans serif, with characters composed of modified-geometric curves and arches";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.marsam ];
|
||||
};
|
||||
}
|
||||
74
pkgs/data/fonts/corefonts/default.nix
Normal file
74
pkgs/data/fonts/corefonts/default.nix
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
{ lib, stdenv, fetchurl, cabextract }:
|
||||
|
||||
let
|
||||
|
||||
fonts = [
|
||||
{name = "andale"; sha256 = "0w7927hlwayqf3vvanf8f3qp2g1i404jzqvhp1z3mp0sjm1gw905";}
|
||||
{name = "arial"; sha256 = "1xkqyivbyb3z9dcalzidf8m4npzfpls2g0kldyn8g73f2i6plac5";}
|
||||
{name = "arialb"; sha256 = "1a60zqrg63kjnykh5hz7dbpzvx7lyivn3vbrp7jyv9d1nvzz09d4";}
|
||||
{name = "comic"; sha256 = "0ki0rljjc1pxkbsxg515fwx15yc95bdyaksa3pjd89nyxzzg6vcw";}
|
||||
{name = "courie"; sha256 = "111k3waxki9yyxpjwl2qrdkswvsd2dmvhbjmmrwyipam2s31sldv";}
|
||||
{name = "georgi"; sha256 = "0083jcpd837j2c06kp1q8glfjn9k7z6vg3wi137savk0lv6psb1c";}
|
||||
{name = "impact"; sha256 = "1yyc5z7zmm3s418hmrkmc8znc55afsrz5dgxblpn9n81fhxyyqb0";}
|
||||
{name = "times"; sha256 = "1aq7z3l46vwgqljvq9zfgkii6aivy00z1529qbjkspggqrg5jmnv";}
|
||||
{name = "trebuc"; sha256 = "1jfsgz80pvyqvpfpaiz5pd8zwlcn67rg2jgynjwf22sip2dhssas";}
|
||||
{name = "webdin"; sha256 = "0nnp2znmnmx87ijq9zma0vl0hd46npx38p0cc6lgp00hpid5nnb4";}
|
||||
{name = "verdan"; sha256 = "15mdbbfqbyp25a6ynik3rck3m3mg44plwrj79rwncc9nbqjn3jy1";}
|
||||
{name = "wd97vwr"; sha256 = "1lmkh3zb6xv47k0z2mcwk3vk8jff9m845c9igxm14bbvs6k2c4gn";}
|
||||
];
|
||||
|
||||
eula = fetchurl {
|
||||
url = "http://corefonts.sourceforge.net/eula.htm";
|
||||
sha256 = "1aqbcnl032g2hd7iy56cs022g47scb0jxxp3mm206x1yqc90vs1c";
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "corefonts";
|
||||
version = "1";
|
||||
|
||||
exes = map ({name, sha256}: fetchurl {
|
||||
url = "mirror://sourceforge/corefonts/${name}32.exe";
|
||||
inherit sha256;
|
||||
}) fonts;
|
||||
|
||||
nativeBuildInputs = [cabextract];
|
||||
|
||||
buildCommand = ''
|
||||
for i in $exes; do
|
||||
cabextract --lowercase $i
|
||||
done
|
||||
|
||||
cabextract --lowercase viewer1.cab
|
||||
|
||||
install -m444 -Dt $out/share/fonts/truetype *.ttf
|
||||
|
||||
# Also put the EULA there to be on the safe side.
|
||||
cp ${eula} $out/share/fonts/truetype/eula.html
|
||||
|
||||
# Set up no-op font configs to override any aliases set up by
|
||||
# other packages.
|
||||
mkdir -p $out/etc/fonts/conf.d
|
||||
for name in Andale-Mono Arial-Black Arial Comic-Sans-MS \
|
||||
Courier-New Georgia Impact Times-New-Roman \
|
||||
Trebuchet Verdana Webdings ; do
|
||||
substitute ${./no-op.conf} $out/etc/fonts/conf.d/30-''${name,,}.conf \
|
||||
--subst-var-by fontname "''${name//-/ }"
|
||||
done
|
||||
'';
|
||||
|
||||
outputHashAlgo = "sha256";
|
||||
outputHashMode = "recursive";
|
||||
outputHash = "089d2m9bvaacj36qdq77pcazji0sbbr796shic3k52cpxkjnzbwh";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://corefonts.sourceforge.net/";
|
||||
description = "Microsoft's TrueType core fonts for the Web";
|
||||
platforms = platforms.all;
|
||||
license = licenses.unfreeRedistributable;
|
||||
# Set a non-zero priority to allow easy overriding of the
|
||||
# fontconfig configuration files.
|
||||
priority = 5;
|
||||
};
|
||||
}
|
||||
9
pkgs/data/fonts/corefonts/no-op.conf
Normal file
9
pkgs/data/fonts/corefonts/no-op.conf
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
||||
<fontconfig>
|
||||
<!-- This configuation is intentionally left empty in order to
|
||||
override any other font package that may wish to set up an
|
||||
alias for the Microsoft @fontname@ font. If you actually do
|
||||
want to have the alias then please change the priority of that
|
||||
package; see the Nix manual page for nix-env for details. -->
|
||||
</fontconfig>
|
||||
24
pkgs/data/fonts/courier-prime/default.nix
Normal file
24
pkgs/data/fonts/courier-prime/default.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "unstable-2019-12-05";
|
||||
repo = "CourierPrime";
|
||||
rev = "7f6d46a766acd9391d899090de467c53fd9c9cb0";
|
||||
in fetchzip rec {
|
||||
name = "courier-prime-${version}";
|
||||
url = "https://github.com/quoteunquoteapps/${repo}/archive/${rev}/${name}.zip";
|
||||
sha256 = "1xh4pkksm6zrafhb69q4lq093q6pl245zi9qhqw3x6c1ab718704";
|
||||
|
||||
postFetch = ''
|
||||
unzip $downloadedFile
|
||||
install -m444 -Dt $out/share/fonts/truetype ${repo}-${rev}/fonts/ttf/*.ttf
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Monospaced font designed specifically for screenplays";
|
||||
homepage = "https://github.com/quoteunquoteapps/CourierPrime";
|
||||
license = licenses.ofl;
|
||||
maintainers = [ maintainers.austinbutler ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
28
pkgs/data/fonts/cozette/default.nix
Normal file
28
pkgs/data/fonts/cozette/default.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "1.13.0";
|
||||
in
|
||||
fetchzip rec {
|
||||
name = "Cozette-${version}";
|
||||
|
||||
url = "https://github.com/slavfox/Cozette/releases/download/v.${version}/CozetteFonts.zip";
|
||||
|
||||
sha256 = "sha256-xp3BCYfNUxCNewg4FfzmJnKp0PARvvnViMVwT25nWdM=";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts
|
||||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
||||
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
||||
unzip -j $downloadedFile \*.bdf -d $out/share/fonts/misc
|
||||
unzip -j $downloadedFile \*.otb -d $out/share/fonts/misc
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A bitmap programming font optimized for coziness";
|
||||
homepage = "https://github.com/slavfox/cozette";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ brettlyons marsam ];
|
||||
};
|
||||
}
|
||||
34
pkgs/data/fonts/creep/default.nix
Normal file
34
pkgs/data/fonts/creep/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, stdenv, fetchFromGitHub, libfaketime
|
||||
, fonttosfnt, mkfontscale
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "creep";
|
||||
version = "0.31";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "romeovs";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0zs21kznh1q883jfdgz74bb63i4lxlv98hj3ipp0wvsi6zw0vs8n";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ libfaketime fonttosfnt mkfontscale ];
|
||||
|
||||
buildPhase = ''
|
||||
faketime -f "1970-01-01 00:00:01" fonttosfnt -g 2 -m 2 -o creep.otb creep.bdf
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -D -m644 creep.otb creep.bdf -t "$out/share/fonts/misc/"
|
||||
mkfontdir "$out/share/fonts/misc"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A pretty sweet 4px wide pixel font";
|
||||
homepage = "https://github.com/romeovs/creep";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ buffet ];
|
||||
};
|
||||
}
|
||||
25
pkgs/data/fonts/crimson/default.nix
Normal file
25
pkgs/data/fonts/crimson/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "2014.10";
|
||||
in fetchzip rec {
|
||||
name = "crimson-${version}";
|
||||
|
||||
url = "https://github.com/skosch/Crimson/archive/fonts-october2014.tar.gz";
|
||||
|
||||
postFetch = ''
|
||||
tar -xzvf $downloadedFile --strip-components=1
|
||||
install -m444 -Dt $out/share/fonts/opentype "Desktop Fonts/OTF/"*.otf
|
||||
install -m444 -Dt $out/share/doc/${name} README.md
|
||||
'';
|
||||
|
||||
sha256 = "0mg65f0ydyfmb43jqr1f34njpd10w8npw15cbb7z0nxmy4nkl842";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/skosch/Crimson";
|
||||
description = "A font family inspired by beautiful oldstyle typefaces";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = [maintainers.rycee];
|
||||
};
|
||||
}
|
||||
28
pkgs/data/fonts/culmus/default.nix
Normal file
28
pkgs/data/fonts/culmus/default.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "0.133";
|
||||
in fetchzip {
|
||||
name = "culmus-${version}";
|
||||
url = "mirror://sourceforge/culmus/culmus/${version}/culmus-${version}.tar.gz";
|
||||
postFetch = ''
|
||||
tar xf $downloadedFile --strip=1
|
||||
mkdir -p $out/share/fonts/{truetype,type1}
|
||||
cp -v *.pfa $out/share/fonts/type1/
|
||||
cp -v *.afm $out/share/fonts/type1/
|
||||
cp -v fonts.scale-type1 $out/share/fonts/type1/fonts.scale
|
||||
cp -v *.ttf $out/share/fonts/truetype/
|
||||
cp -v *.otf $out/share/fonts/truetype/
|
||||
cp -v fonts.scale-ttf $out/share/fonts/truetype/fonts.scale
|
||||
'';
|
||||
sha256 = "0zqqjcrqmbd4389hqz2dwymkkcxjrq9ylyriiv3gbmzl6l1ffk3g";
|
||||
|
||||
meta = {
|
||||
description = "Culmus Hebrew fonts";
|
||||
longDescription = "The Culmus project aims at providing the Hebrew-speaking GNU/Linux and Unix community with a basic collection of Hebrew fonts for X Windows.";
|
||||
platforms = lib.platforms.all;
|
||||
license = lib.licenses.gpl2;
|
||||
homepage = "http://culmus.sourceforge.net/";
|
||||
downloadPage = "http://culmus.sourceforge.net/download.html";
|
||||
};
|
||||
}
|
||||
29
pkgs/data/fonts/curie/default.nix
Normal file
29
pkgs/data/fonts/curie/default.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ lib, fetchurl }:
|
||||
|
||||
let
|
||||
version = "1.0";
|
||||
in fetchurl rec {
|
||||
name = "curie-${version}";
|
||||
|
||||
url = "https://github.com/NerdyPepper/curie/releases/download/v${version}/curie-v${version}.tar.gz";
|
||||
|
||||
downloadToTemp = true;
|
||||
|
||||
recursiveHash = true;
|
||||
|
||||
sha256 = "sha256-twPAzsbTveYW0rQd7FYZz5AMZgvPbNmn5c7Nfzn7B0A=";
|
||||
|
||||
postFetch = ''
|
||||
tar xzf $downloadedFile
|
||||
mkdir -p $out/share/fonts/misc
|
||||
install *.otb $out/share/fonts/misc
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "An upscaled version of scientifica";
|
||||
homepage = "https://github.com/NerdyPepper/curie";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ fortuneteller2k ];
|
||||
};
|
||||
}
|
||||
32
pkgs/data/fonts/d2coding/default.nix
Normal file
32
pkgs/data/fonts/d2coding/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "1.3.2";
|
||||
pname = "d2codingfont";
|
||||
|
||||
in fetchzip {
|
||||
name = "${pname}-${version}";
|
||||
url = "https://github.com/naver/${pname}/releases/download/VER${version}/D2Coding-Ver${version}-20180524.zip";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts
|
||||
unzip -j $downloadedFile \*-all.ttc -d $out/share/fonts/truetype/
|
||||
'';
|
||||
|
||||
sha256 = "1812r82530wzfki7k9cm35fy6k2lvis7j6w0w8svc784949m1wwj";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Monospace font with support for Korean and latin characters";
|
||||
longDescription = ''
|
||||
D2Coding is a monospace font developed by a Korean IT Company called Naver.
|
||||
Font is good for displaying both Korean characters and latin characters,
|
||||
as sometimes these two languages could share some similar strokes.
|
||||
Since verion 1.3, D2Coding font is officially supported by the font
|
||||
creator, with symbols for Powerline.
|
||||
'';
|
||||
homepage = "https://github.com/naver/d2codingfont";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ dtzWill ];
|
||||
};
|
||||
}
|
||||
27
pkgs/data/fonts/dancing-script/default.nix
Normal file
27
pkgs/data/fonts/dancing-script/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ lib, fetchFromGitHub }:
|
||||
|
||||
let
|
||||
pname = "dancing-script";
|
||||
version = "2.0";
|
||||
in fetchFromGitHub {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
owner = "impallari";
|
||||
repo = "DancingScript";
|
||||
rev = "f7f54bc1b8836601dae8696666bfacd306f77e34";
|
||||
sha256 = "dfFvh8h+oMhAQL9XKMrNr07VUkdQdxAsA8+q27KWWCA=";
|
||||
|
||||
postFetch = ''
|
||||
tar xf $downloadedFile --strip=1
|
||||
install -m444 -Dt $out/share/fonts/truetype fonts/ttf/*.ttf
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Dancing Script";
|
||||
longDescription = "A lively casual script where the letters bounce and change size slightly.";
|
||||
homepage = "https://github.com/impallari/DancingScript";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ wdavidw ];
|
||||
};
|
||||
}
|
||||
65
pkgs/data/fonts/dejavu-fonts/default.nix
Normal file
65
pkgs/data/fonts/dejavu-fonts/default.nix
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
{ fetchFromGitHub, lib, stdenv, fontforge, perl, perlPackages }:
|
||||
|
||||
let
|
||||
version = "2.37";
|
||||
|
||||
meta = {
|
||||
description = "A typeface family based on the Bitstream Vera fonts";
|
||||
longDescription = ''
|
||||
The DejaVu fonts are TrueType fonts based on the BitStream Vera fonts,
|
||||
providing more styles and with greater coverage of Unicode.
|
||||
|
||||
This package includes DejaVu Sans, DejaVu Serif, DejaVu Sans Mono, and
|
||||
the TeX Gyre DejaVu Math font.
|
||||
'';
|
||||
homepage = "https://dejavu-fonts.github.io/";
|
||||
|
||||
# Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved.
|
||||
# Copyright (c) 2006 by Tavmjong Bah. All Rights Reserved.
|
||||
# DejaVu changes are in public domain
|
||||
# See http://dejavu-fonts.org/wiki/License for details
|
||||
license = lib.licenses.free;
|
||||
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
|
||||
full-ttf = stdenv.mkDerivation {
|
||||
pname = "dejavu-fonts-full";
|
||||
inherit version;
|
||||
nativeBuildInputs = [fontforge perl perlPackages.IOString perlPackages.FontTTF];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dejavu-fonts";
|
||||
repo = "dejavu-fonts";
|
||||
rev = "version_${lib.replaceStrings ["."] ["_"] version}";
|
||||
sha256 = "1xknlg2h287dx34v2n5r33bpcl4biqf0cv7nak657rjki7s0k4bk";
|
||||
};
|
||||
|
||||
buildFlags = [ "full-ttf" ];
|
||||
|
||||
preBuild = "patchShebangs scripts";
|
||||
|
||||
installPhase = "install -m444 -Dt $out/share/fonts/truetype build/*.ttf";
|
||||
|
||||
inherit meta;
|
||||
};
|
||||
|
||||
minimal = stdenv.mkDerivation {
|
||||
pname = "dejavu-fonts-minimal";
|
||||
inherit version;
|
||||
buildCommand = ''
|
||||
install -m444 -Dt $out/share/fonts/truetype ${full-ttf}/share/fonts/truetype/DejaVuSans.ttf
|
||||
'';
|
||||
inherit meta;
|
||||
};
|
||||
in stdenv.mkDerivation {
|
||||
pname = "dejavu-fonts";
|
||||
inherit version;
|
||||
buildCommand = ''
|
||||
install -m444 -Dt $out/share/fonts/truetype ${full-ttf}/share/fonts/truetype/*.ttf
|
||||
ln -s --relative --force --target-directory=$out/share/fonts/truetype ${minimal}/share/fonts/truetype/DejaVuSans.ttf
|
||||
'';
|
||||
inherit meta;
|
||||
|
||||
passthru = { inherit minimal full-ttf; };
|
||||
}
|
||||
70
pkgs/data/fonts/dina/default.nix
Normal file
70
pkgs/data/fonts/dina/default.nix
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
{ lib, stdenv, fetchurl, unzip
|
||||
, bdftopcf, mkfontscale, fonttosfnt
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "dina-font";
|
||||
version = "2.92";
|
||||
|
||||
outputs = [ "out" "bdf" ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.donationcoder.com/Software/Jibz/Dina/downloads/Dina.zip";
|
||||
sha256 = "1kq86lbxxgik82aywwhawmj80vsbz3hfhdyhicnlv9km7yjvnl8z";
|
||||
};
|
||||
|
||||
nativeBuildInputs =
|
||||
[ unzip bdftopcf mkfontscale fonttosfnt ];
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's/microsoft-cp1252/ISO8859-1/' *.bdf
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
newName() {
|
||||
test "''${1:5:1}" = i && _it=Italic || _it=
|
||||
case ''${1:6:3} in
|
||||
400) test -z $it && _weight=Medium ;;
|
||||
700) _weight=Bold ;;
|
||||
esac
|
||||
_pt=''${1%.bdf}
|
||||
_pt=''${_pt#*-}
|
||||
echo "Dina$_weight$_it$_pt"
|
||||
}
|
||||
|
||||
for f in *.bdf; do
|
||||
name=$(newName "$f")
|
||||
bdftopcf -t -o "$name.pcf" "$f"
|
||||
fonttosfnt -v -o "$name.otb" "$f"
|
||||
done
|
||||
gzip -n -9 *.pcf
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -D -m 644 -t "$out/share/fonts/misc" *.pcf.gz *.otb
|
||||
install -D -m 644 -t "$bdf/share/fonts/misc" *.bdf
|
||||
mkfontdir "$out/share/fonts/misc"
|
||||
mkfontdir "$bdf/share/fonts/misc"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A monospace bitmap font aimed at programmers";
|
||||
longDescription = ''
|
||||
Dina is a monospace bitmap font, primarily aimed at programmers. It is
|
||||
relatively compact to allow a lot of code on screen, while (hopefully)
|
||||
clear enough to remain readable even at high resolutions.
|
||||
'';
|
||||
homepage = "https://www.donationcoder.com/Software/Jibz/Dina/";
|
||||
downloadPage = "https://www.donationcoder.com/Software/Jibz/Dina/";
|
||||
license = licenses.free;
|
||||
maintainers = [ maintainers.prikhi ];
|
||||
};
|
||||
}
|
||||
35
pkgs/data/fonts/dosemu-fonts/default.nix
Normal file
35
pkgs/data/fonts/dosemu-fonts/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ stdenv, fetchurl, bdftopcf, mkfontdir, mkfontscale }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dosemu-fonts";
|
||||
version = "1.4.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/dosemu/dosemu-${version}.tgz";
|
||||
sha256 = "0l1zwmw42mpakjrzmbygshcg2qzq9mv8lx42738rz3j9hrqzg4pw";
|
||||
};
|
||||
|
||||
buildCommand = ''
|
||||
tar xf "$src" --anchored --wildcards '*/etc/*.bdf' '*/etc/dosemu.alias'
|
||||
fontPath="$out/share/fonts/X11/misc/dosemu"
|
||||
mkdir -p "$fontPath"
|
||||
for i in */etc/*.bdf; do
|
||||
fontOut="$out/share/fonts/X11/misc/dosemu/$(basename "$i" .bdf).pcf.gz"
|
||||
echo -n "Installing font $fontOut..." >&2
|
||||
${bdftopcf}/bin/bdftopcf $i | gzip -c -9 -n > "$fontOut"
|
||||
echo " done." >&2
|
||||
done
|
||||
cp */etc/dosemu.alias "$fontPath/fonts.alias"
|
||||
cd "$fontPath"
|
||||
${mkfontdir}/bin/mkfontdir
|
||||
${mkfontscale}/bin/mkfontscale
|
||||
'';
|
||||
|
||||
outputHashAlgo = "sha256";
|
||||
outputHashMode = "recursive";
|
||||
outputHash = "1miqv0ral5vazx721wildjlzvji5r7pbgm39c0cpj5ywafaikxr8";
|
||||
|
||||
meta = {
|
||||
description = "Various fonts from the DOSEmu project";
|
||||
};
|
||||
}
|
||||
36
pkgs/data/fonts/dosis/default.nix
Normal file
36
pkgs/data/fonts/dosis/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ lib, fetchFromGitHub }:
|
||||
|
||||
fetchFromGitHub rec {
|
||||
name = "dosis-1.007";
|
||||
|
||||
owner = "impallari";
|
||||
repo = "Dosis";
|
||||
rev = "12df1e13e58768f20e0d48ff15651b703f9dd9dc";
|
||||
|
||||
postFetch = ''
|
||||
tar xf $downloadedFile --strip=1
|
||||
find . -name '*.otf' -exec install -m444 -Dt $out/share/fonts/opentype {} \;
|
||||
install -m444 -Dt $out/share/doc/${name} README.md FONTLOG.txt
|
||||
'';
|
||||
|
||||
sha256 = "0vz25w45i8flfvppymr5h83pa2n1r37da20v7691p44018fdsdny";
|
||||
|
||||
meta = with lib; {
|
||||
description = "A very simple, rounded, sans serif family";
|
||||
longDescription = ''
|
||||
Dosis is a very simple, rounded, sans serif family.
|
||||
|
||||
The lighter weights are minimalist. The bolder weights have more
|
||||
personality. The medium weight is nice and balanced. The overall result is
|
||||
a family that's clean and modern, and can express a wide range of
|
||||
voices & feelings.
|
||||
|
||||
It comes in 7 incremental weights: ExtraLight, Light, Book, Medium,
|
||||
Semibold, Bold & ExtraBold
|
||||
'';
|
||||
homepage = "http://www.impallari.com/dosis";
|
||||
license = licenses.ofl;
|
||||
maintainers = with maintainers; [ cmfwyp ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
31
pkgs/data/fonts/doulos-sil/default.nix
Normal file
31
pkgs/data/fonts/doulos-sil/default.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "6.101";
|
||||
in
|
||||
fetchzip rec {
|
||||
name = "doulos-sil-${version}";
|
||||
|
||||
url = "https://software.sil.org/downloads/r/doulos/DoulosSIL-${version}.zip";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/{doc,fonts}
|
||||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
||||
unzip -j $downloadedFile \*OFL.txt \*OFL-FAQ.txt \*README.txt \*FONTLOG.txt -d "$out/share/doc/${name}"
|
||||
'';
|
||||
|
||||
sha256 = "sha256-vYdnudMkkWz6r8pwq98fyO0zcfFBRPmrqlmWxHCOIcc=";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://software.sil.org/doulos";
|
||||
description = "A font that provides complete support for the International Phonetic Alphabet";
|
||||
longDescription = ''
|
||||
This Doulos SIL font is essentially the same design as the SIL Doulos font first released by SIL in 1992. The design has been changed from the original in that it has been scaled down to be a better match with contemporary digital fonts, such as Times New Roman®. This current release is a regular typeface, with no bold or italic version available or planned. It is intended for use alongside other Times-like fonts where a range of styles (italic, bold) are not needed. Therefore, just one font is included in the Doulos SIL release: Doulos SIL Regular.
|
||||
|
||||
The goal for this product was to provide a single Unicode-based font family that would contain a comprehensive inventory of glyphs needed for almost any Roman- or Cyrillic-based writing system, whether used for phonetic or orthographic needs. In addition, there is provision for other characters and symbols useful to linguists. This font makes use of state-of-the-art font technologies to support complex typographic issues, such as the need to position arbitrary combinations of base glyphs and diacritics optimally.
|
||||
'';
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.f--t ];
|
||||
};
|
||||
}
|
||||
25
pkgs/data/fonts/eb-garamond/default.nix
Normal file
25
pkgs/data/fonts/eb-garamond/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "0.016";
|
||||
in fetchzip rec {
|
||||
name = "eb-garamond-${version}";
|
||||
|
||||
url = "https://bitbucket.org/georgd/eb-garamond/downloads/EBGaramond-${version}.zip";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/{doc,fonts}
|
||||
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
||||
unzip -j $downloadedFile \*Changes \*README.markdown \*README.xelualatex -d "$out/share/doc/${name}"
|
||||
'';
|
||||
|
||||
sha256 = "04jq4mpln85zzbla8ybsjw7vn9qr3r0snmk5zykrm24imq7ripv3";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://www.georgduffner.at/ebgaramond/";
|
||||
description = "Digitization of the Garamond shown on the Egenolff-Berner specimen";
|
||||
maintainers = with maintainers; [ relrod rycee ];
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
33
pkgs/data/fonts/edukai/default.nix
Normal file
33
pkgs/data/fonts/edukai/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ stdenvNoCC, lib, fetchzip }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "edukai";
|
||||
version = "4.0";
|
||||
|
||||
src = fetchzip {
|
||||
name = "${pname}-${version}";
|
||||
url =
|
||||
"http://language.moe.gov.tw/001/Upload/Files/site_content/M0001/edukai-4.0.zip";
|
||||
sha256 = "10m9srvbazvg9gc43943dc89rjzcfc8mm4lx9gb5hnplrn22zrcn";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts/
|
||||
mv *.ttf $out/share/fonts/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description =
|
||||
"The MOE Standard Kai Font, a Chinese font by the Ministry of Education, ROC (Taiwan)";
|
||||
longDescription = ''
|
||||
The MOE Standard Kai Font is a kai (regular srcipt) font
|
||||
provided by
|
||||
the Midistry of Education, Republic of China (Taiwan).
|
||||
It currently includes 13,076 Chinese characters.
|
||||
'';
|
||||
homepage =
|
||||
"http://language.moe.gov.tw/result.aspx?classify_sn=23&subclassify_sn=436&content_sn=47";
|
||||
license = lib.licenses.cc-by-nd-30;
|
||||
maintainers = with lib.maintainers; [ ShamrockLee ];
|
||||
};
|
||||
}
|
||||
36
pkgs/data/fonts/eduli/default.nix
Normal file
36
pkgs/data/fonts/eduli/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ stdenvNoCC, lib, fetchzip }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "eduli";
|
||||
version = "3.0";
|
||||
|
||||
src = fetchzip {
|
||||
name = "${pname}-${version}";
|
||||
url =
|
||||
"http://language.moe.gov.tw/001/Upload/Files/site_content/M0001/MoeLI-3.0.zip";
|
||||
sha256 = "0vpmm2qb429npng0aqkafwgs7cjibq8a3f7bbn9hysbm2lndwxwd";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts/
|
||||
for name in *.ttf; do
|
||||
mv "$name" "$out/share/fonts/$(echo $name | sed -r 's/(.*)\(.*\)\.ttf/\1.ttf/')"
|
||||
done
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description =
|
||||
"The MOE Li Font, a clerical Chinese font by the Ministry of Education, ROC (Taiwan)";
|
||||
longDescription = ''
|
||||
The MOE Li Font is a li (clerical srcipt) font
|
||||
provided by
|
||||
the Midistry of Education, Republic of China (Taiwan).
|
||||
It currently includes 4,808 Chinese characters.
|
||||
The clerical script (lishu) is an archaic style of Chinese calligraphy.
|
||||
'';
|
||||
homepage =
|
||||
"http://language.moe.gov.tw/result.aspx?classify_sn=23&subclassify_sn=436&content_sn=49";
|
||||
license = lib.licenses.cc-by-nd-30;
|
||||
maintainers = with lib.maintainers; [ ShamrockLee ];
|
||||
};
|
||||
}
|
||||
32
pkgs/data/fonts/edusong/default.nix
Normal file
32
pkgs/data/fonts/edusong/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ stdenvNoCC, lib, fetchzip }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "edusong";
|
||||
version = "1.0"; # The upstream doesn't provide the version
|
||||
|
||||
src = fetchzip {
|
||||
name = "${pname}-${version}";
|
||||
url =
|
||||
"http://language.moe.gov.tw/001/Upload/Files/site_content/M0001/eduSong_Unicode.zip";
|
||||
sha256 = "1b74wj9hdzlnrvldwlkh21sfhqxwh9qghf1k0fv66zs6n48vb0d4";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts/
|
||||
mv *.ttf $out/share/fonts/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description =
|
||||
"The MOE Standard Song Font, a Chinese font by the Ministry of Education, ROC (Taiwan)";
|
||||
longDescription = ''
|
||||
The MOE Standard Song Font is a Chinese Song font provided by
|
||||
the Midistry of Education, Republic of China (Taiwan).
|
||||
Song or Ming is a category of CKJ typefaces in print.
|
||||
'';
|
||||
homepage =
|
||||
"http://language.moe.gov.tw/result.aspx?classify_sn=23&subclassify_sn=436&content_sn=48";
|
||||
license = lib.licenses.cc-by-nd-30;
|
||||
maintainers = with lib.maintainers; [ ShamrockLee ];
|
||||
};
|
||||
}
|
||||
29
pkgs/data/fonts/edwin/default.nix
Normal file
29
pkgs/data/fonts/edwin/default.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ lib, fetchurl }:
|
||||
|
||||
let
|
||||
version = "0.52";
|
||||
in fetchurl {
|
||||
name = "edwin-${version}";
|
||||
|
||||
url = "https://github.com/MuseScoreFonts/Edwin/archive/refs/tags/v${version}.tar.gz";
|
||||
|
||||
downloadToTemp = true;
|
||||
|
||||
recursiveHash = true;
|
||||
|
||||
sha256 = "sha256-e0ADK72ECl+QMvLWtFJfeHBmuEwzr9M+Kqvkd5Z2mmo=";
|
||||
|
||||
postFetch = ''
|
||||
tar xzf $downloadedFile
|
||||
mkdir -p $out/share/fonts/opentype
|
||||
install Edwin-${version}/*.otf $out/share/fonts/opentype
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A text font for musical scores";
|
||||
homepage = "https://github.com/MuseScoreFonts/Edwin";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ fortuneteller2k ];
|
||||
};
|
||||
}
|
||||
54
pkgs/data/fonts/efont-unicode/default.nix
Normal file
54
pkgs/data/fonts/efont-unicode/default.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{ lib, stdenv, fetchzip, libfaketime, xorg }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "efont-unicode";
|
||||
version = "0.4.2";
|
||||
|
||||
src = fetchzip {
|
||||
url = "http://openlab.ring.gr.jp/efont/dist/unicode-bdf/${pname}-bdf-${version}.tar.bz2";
|
||||
sha256 = "0bib3jgikq8s1m96imw4mlgbl5cbq1bs5sqig74s2l2cdfx3jaqc";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with xorg;
|
||||
[ libfaketime bdftopcf fonttosfnt mkfontscale ];
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
# convert bdf fonts to pcf
|
||||
for f in *.bdf; do
|
||||
bdftopcf -t -o "''${f%.bdf}.pcf" "$f"
|
||||
done
|
||||
gzip -n -9 *.pcf
|
||||
|
||||
# convert bdf fonts to otb
|
||||
for f in *.bdf; do
|
||||
faketime -f "1970-01-01 00:00:01" \
|
||||
fonttosfnt -v -m 2 -o "''${f%.bdf}.otb" "$f"
|
||||
done
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
dir=share/fonts/misc
|
||||
install -D -m 644 -t "$out/$dir" *.otb *.pcf.gz
|
||||
install -D -m 644 -t "$bdf/$dir" *.bdf
|
||||
mkfontdir "$out/$dir"
|
||||
mkfontdir "$bdf/$dir"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
outputs = [ "out" "bdf" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "The /efont/ Unicode bitmap font";
|
||||
homepage = "http://openlab.ring.gr.jp/efont/unicode/";
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.ncfavier ];
|
||||
};
|
||||
}
|
||||
35
pkgs/data/fonts/emacs-all-the-icons-fonts/default.nix
Normal file
35
pkgs/data/fonts/emacs-all-the-icons-fonts/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "5.0.0";
|
||||
in fetchzip {
|
||||
name = "emacs-all-the-icons-fonts-${version}";
|
||||
|
||||
url = "https://github.com/domtronn/all-the-icons.el/archive/${version}.zip";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts
|
||||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/all-the-icons
|
||||
'';
|
||||
|
||||
sha256 = "0vc9bkm4pcc05llcd2c9zr3d88h3zmci0izla5wnw8hg1n0rsrii";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Icon fonts for emacs all-the-icons";
|
||||
longDescription = ''
|
||||
The emacs package all-the-icons provides icons to improve
|
||||
presentation of information in emacs. This package provides
|
||||
the fonts needed to make the package work properly.
|
||||
'';
|
||||
homepage = "https://github.com/domtronn/all-the-icons.el";
|
||||
|
||||
/*
|
||||
The fonts come under a mixture of licenses - the MIT license,
|
||||
SIL OFL license, and Apache license v2.0. See the GitHub page
|
||||
for further information.
|
||||
*/
|
||||
license = licenses.free;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ rlupton20 ];
|
||||
};
|
||||
}
|
||||
50
pkgs/data/fonts/emojione/default.nix
Normal file
50
pkgs/data/fonts/emojione/default.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{ lib, stdenv, fetchFromGitHub, fetchpatch, inkscape, imagemagick, potrace, svgo, scfbuild }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "emojione";
|
||||
version = "1.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "eosrei";
|
||||
repo = "emojione-color-font";
|
||||
rev = "v${version}";
|
||||
sha256 = "1781kxfbhnvylypbkwxc3mx6hi0gcjisfjr9cf0jdz4d1zkf09b3";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix build with Inkscape 1.0
|
||||
# https://github.com/eosrei/twemoji-color-font/pull/82
|
||||
(fetchpatch {
|
||||
url = "https://github.com/eosrei/twemoji-color-font/commit/208ad63c2ceb38c528b5237abeb2b85ceedc1d37.patch";
|
||||
sha256 = "7tDWIkpcdir1V6skgXSM3r0FwHy0F6PyJ07OPRsSStA=";
|
||||
postFetch = ''
|
||||
substituteInPlace $out \
|
||||
--replace "inkscape --without-gui" "inkscape --export-png" \
|
||||
--replace TWEMOJI EMOJIONE \
|
||||
--replace "the assets" "the emojione assets" \
|
||||
--replace twemoji emojione
|
||||
'';
|
||||
})
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
sed -i 's,SCFBUILD :=.*,SCFBUILD := scfbuild,' Makefile
|
||||
# Shut up inkscape's warnings
|
||||
export HOME="$NIX_BUILD_ROOT"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ inkscape imagemagick potrace svgo scfbuild ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
installPhase = ''
|
||||
install -Dm755 build/EmojiOneColor-SVGinOT.ttf $out/share/fonts/truetype/EmojiOneColor-SVGinOT.ttf
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Open source emoji set";
|
||||
homepage = "http://emojione.com/";
|
||||
license = licenses.cc-by-40;
|
||||
maintainers = with maintainers; [ abbradar ];
|
||||
};
|
||||
}
|
||||
31
pkgs/data/fonts/encode-sans/default.nix
Normal file
31
pkgs/data/fonts/encode-sans/default.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
fetchzip rec {
|
||||
name = "encode-sans-1.002";
|
||||
|
||||
url = "https://github.com/impallari/Encode-Sans/archive/11162b46892d20f55bd42a00b48cbf06b5871f75.zip";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/{doc,fonts}
|
||||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
||||
unzip -j $downloadedFile \*README.md \*FONTLOG.txt -d "$out/share/doc/${name}"
|
||||
'';
|
||||
|
||||
sha256 = "16mx894zqlwrhnp4rflgayxhxppmsj6k7haxdngajhb30rlwf08p";
|
||||
|
||||
meta = with lib; {
|
||||
description = "A versatile sans serif font family";
|
||||
longDescription = ''
|
||||
The Encode Sans family is a versatile workhorse. Featuring a huge range of
|
||||
weights and widths, it's ready for all kind of typographic challenges. It
|
||||
also includes Tabular and Old Style figures, as well as full set of Small
|
||||
Caps and other Open Type features.
|
||||
|
||||
Designed by Pablo Impallari and Andres Torresi.
|
||||
'';
|
||||
homepage = "https://github.com/impallari/Encode-Sans";
|
||||
license = licenses.ofl;
|
||||
maintainers = with maintainers; [ cmfwyp ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
40
pkgs/data/fonts/envypn-font/default.nix
Normal file
40
pkgs/data/fonts/envypn-font/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, stdenv, fetchurl, libfaketime
|
||||
, fonttosfnt, mkfontscale
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "envypn-font-1.7.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://ywstd.fr/files/p/envypn-font/envypn-font-1.7.1.tar.gz";
|
||||
sha256 = "bda67b6bc6d5d871a4d46565d4126729dfb8a0de9611dae6c68132a7b7db1270";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ libfaketime fonttosfnt mkfontscale ];
|
||||
|
||||
unpackPhase = ''
|
||||
tar -xzf $src --strip-components=1
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
# convert pcf fonts to otb
|
||||
for i in *e.pcf.gz; do
|
||||
faketime -f "1970-01-01 00:00:01" \
|
||||
fonttosfnt -v -o "$(basename "$i" .pcf.gz)".otb "$i"
|
||||
done
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -D -m 644 -t "$out/share/fonts/misc" *.otb *.pcf.gz
|
||||
mkfontdir "$out/share/fonts/misc"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = ''
|
||||
Readable bitmap font inspired by Envy Code R
|
||||
'';
|
||||
homepage = "http://ywstd.fr/p/pj/#envypn";
|
||||
license = licenses.miros;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
22
pkgs/data/fonts/et-book/default.nix
Normal file
22
pkgs/data/fonts/et-book/default.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ lib, fetchFromGitHub }:
|
||||
|
||||
fetchFromGitHub rec {
|
||||
rev = "7e8f02dadcc23ba42b491b39e5bdf16e7b383031";
|
||||
name = "et-book-${builtins.substring 0 6 rev}";
|
||||
owner = "edwardtufte";
|
||||
repo = "et-book";
|
||||
sha256 = "1bfb1l8k7fzgk2l8cikiyfn5x9m0fiwrnsbc1483p8w3qp58s5n2";
|
||||
|
||||
postFetch = ''
|
||||
tar -xzf $downloadedFile
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
cp -t $out/share/fonts/truetype et-book-${rev}/source/4-ttf/*.ttf
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "The typeface used in Edward Tufte’s books.";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ jethro ];
|
||||
};
|
||||
}
|
||||
27
pkgs/data/fonts/eunomia/default.nix
Normal file
27
pkgs/data/fonts/eunomia/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
majorVersion = "0";
|
||||
minorVersion = "200";
|
||||
pname = "eunomia";
|
||||
in
|
||||
|
||||
fetchzip {
|
||||
name = "${pname}-font-${majorVersion}.${minorVersion}";
|
||||
|
||||
url = "http://dotcolon.net/DL/font/${pname}_${majorVersion}${minorVersion}.zip";
|
||||
sha256 = "0lpmczs1d4p9dy4s0dnvv7bl5cd0f6yzyasfrkxij5s86glps38b";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts/opentype/${pname}
|
||||
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://dotcolon.net/font/eunomia/";
|
||||
description = "A futuristic decorative font";
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ leenaars ];
|
||||
license = licenses.ofl;
|
||||
};
|
||||
}
|
||||
26
pkgs/data/fonts/ezra-sil/default.nix
Normal file
26
pkgs/data/fonts/ezra-sil/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "2.51";
|
||||
in
|
||||
fetchzip rec {
|
||||
name = "ezra-sil-${version}";
|
||||
|
||||
url = "https://software.sil.org/downloads/r/ezra/EzraSIL-${version}.zip";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/{doc,fonts}
|
||||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
||||
unzip -j $downloadedFile \*OFL-FAQ.txt \*README.txt \*FONTLOG.txt -d "$out/share/doc/${name}"
|
||||
'';
|
||||
|
||||
sha256 = "sha256-1LGw/RPFeNtEvcBWFWZf8+dABvWye2RfZ/jt8rwQewM=";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://software.sil.org/ezra";
|
||||
description = "Typeface fashioned after the square letter forms of the typography of the Biblia Hebraica Stuttgartensia (BHS)";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.kmein ];
|
||||
};
|
||||
}
|
||||
27
pkgs/data/fonts/f5_6/default.nix
Normal file
27
pkgs/data/fonts/f5_6/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
majorVersion = "0";
|
||||
minorVersion = "110";
|
||||
pname = "f5_6";
|
||||
in
|
||||
|
||||
fetchzip {
|
||||
name = "${pname}-font-${majorVersion}.${minorVersion}";
|
||||
|
||||
url = "http://dotcolon.net/DL/font/${pname}_${majorVersion}${minorVersion}.zip";
|
||||
sha256 = "04p6lccd26rhjbpq3ddxi5vkk3lk8lqbpnk8lakjzixp3fgdqpp4";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts/opentype/${pname}
|
||||
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://dotcolon.net/font/${pname}/";
|
||||
description = "A weighted decorative font";
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ leenaars ];
|
||||
license = licenses.ofl;
|
||||
};
|
||||
}
|
||||
27
pkgs/data/fonts/fantasque-sans-mono/default.nix
Normal file
27
pkgs/data/fonts/fantasque-sans-mono/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "1.8.0";
|
||||
in
|
||||
|
||||
fetchzip rec {
|
||||
name = "fantasque-sans-mono-${version}";
|
||||
|
||||
url = "https://github.com/belluzj/fantasque-sans/releases/download/v${version}/FantasqueSansMono-Normal.zip";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/{doc,fonts}
|
||||
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
||||
unzip -j $downloadedFile README.md -d $out/share/doc/${name}
|
||||
'';
|
||||
|
||||
sha256 = "07y2w6xzkbaj6vr95fvvnmwq1pw9jib4z02xf8937dx812yic9ni";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/belluzj/fantasque-sans";
|
||||
description = "A font family with a great monospaced variant for programmers";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.rycee ];
|
||||
};
|
||||
}
|
||||
27
pkgs/data/fonts/ferrum/default.nix
Normal file
27
pkgs/data/fonts/ferrum/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
majorVersion = "0";
|
||||
minorVersion = "200";
|
||||
pname = "ferrum";
|
||||
in
|
||||
|
||||
fetchzip {
|
||||
name = "${pname}-font-${majorVersion}.${minorVersion}";
|
||||
|
||||
url = "http://dotcolon.net/DL/font/${pname}.zip";
|
||||
sha256 = "1w1b3ch7ik4264f05lxms01ls0aargvlx770a9szm682dfmizn8w";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts/opentype/${pname}
|
||||
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://dotcolon.net/font/${pname}/";
|
||||
description = "A decorative font";
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ leenaars ];
|
||||
license = licenses.cc0;
|
||||
};
|
||||
}
|
||||
30
pkgs/data/fonts/fira-code/default.nix
Normal file
30
pkgs/data/fonts/fira-code/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "6.2";
|
||||
in fetchzip {
|
||||
name = "fira-code-${version}";
|
||||
|
||||
url = "https://github.com/tonsky/FiraCode/releases/download/${version}/Fira_Code_v${version}.zip";
|
||||
|
||||
# only extract the variable font because everything else is a duplicate
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts
|
||||
unzip -j $downloadedFile '*-VF.ttf' -d $out/share/fonts/truetype
|
||||
'';
|
||||
|
||||
sha256 = "0l02ivxz3jbk0rhgaq83cqarqxr07xgp7n27l0fh8fbgxwi52djl";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/tonsky/FiraCode";
|
||||
description = "Monospace font with programming ligatures";
|
||||
longDescription = ''
|
||||
Fira Code is a monospace font extending the Fira Mono font with
|
||||
a set of ligatures for common programming multi-character
|
||||
combinations.
|
||||
'';
|
||||
license = licenses.ofl;
|
||||
maintainers = [ maintainers.rycee ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
26
pkgs/data/fonts/fira-code/symbols.nix
Normal file
26
pkgs/data/fonts/fira-code/symbols.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
fetchzip {
|
||||
name = "fira-code-symbols-20160811";
|
||||
|
||||
url = "https://github.com/tonsky/FiraCode/files/412440/FiraCode-Regular-Symbol.zip";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts
|
||||
unzip -j $downloadedFile -d $out/share/fonts/opentype
|
||||
'';
|
||||
|
||||
sha256 = "19krsp22rin74ix0i19v4bh1c965g18xkmz1n55h6n6qimisnbkm";
|
||||
|
||||
meta = with lib; {
|
||||
description = "FiraCode unicode ligature glyphs in private use area";
|
||||
longDescription = ''
|
||||
FiraCode uses ligatures, which some editors don’t support.
|
||||
This addition adds them as glyphs to the private unicode use area.
|
||||
See https://github.com/tonsky/FiraCode/issues/211.
|
||||
'';
|
||||
license = licenses.ofl;
|
||||
maintainers = [ maintainers.Profpatsch ];
|
||||
homepage = "https://github.com/tonsky/FiraCode/issues/211#issuecomment-239058632";
|
||||
};
|
||||
}
|
||||
29
pkgs/data/fonts/fira-mono/default.nix
Normal file
29
pkgs/data/fonts/fira-mono/default.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ lib, fetchzip }:
|
||||
|
||||
let version = "4.202";
|
||||
in fetchzip {
|
||||
name = "fira-mono-${version}";
|
||||
|
||||
url = "https://github.com/mozilla/Fira/archive/${version}.zip";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts
|
||||
unzip -j $downloadedFile Fira-${version}/otf/FiraMono\*.otf -d $out/share/fonts/opentype
|
||||
'';
|
||||
|
||||
sha256 = "1ci3fxhdwabvfj4nl16pwcgqnh7s2slp8vblribk8zkpx8cbp1dj";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://mozilla.github.io/Fira/";
|
||||
description = "Monospace font for Firefox OS";
|
||||
longDescription = ''
|
||||
Fira Mono is a monospace font designed by Erik Spiekermann,
|
||||
Ralph du Carrois, Anja Meiners and Botio Nikoltchev of Carrois
|
||||
Type Design for Mozilla Firefox OS. Available in Regular,
|
||||
Medium, and Bold.
|
||||
'';
|
||||
license = licenses.ofl;
|
||||
maintainers = [ maintainers.rycee ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
35
pkgs/data/fonts/fira/default.nix
Normal file
35
pkgs/data/fonts/fira/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ lib, fetchFromGitHub }:
|
||||
|
||||
let
|
||||
version = "4.202";
|
||||
in fetchFromGitHub {
|
||||
name = "fira-${version}";
|
||||
|
||||
owner = "mozilla";
|
||||
repo = "Fira";
|
||||
rev = version;
|
||||
|
||||
postFetch = ''
|
||||
tar xf $downloadedFile --strip=1
|
||||
mkdir -p $out/share/fonts/opentype
|
||||
cp otf/*.otf $out/share/fonts/opentype
|
||||
'';
|
||||
|
||||
sha256 = "1iwxbp7kw5kghh5nbycb05zby7p2ib61mywva3h6giv2wd4lpxnz";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://mozilla.github.io/Fira/";
|
||||
description = "Sans-serif font for Firefox OS";
|
||||
longDescription = ''
|
||||
Fira Sans is a sans-serif font designed by Erik Spiekermann,
|
||||
Ralph du Carrois, Anja Meiners and Botio Nikoltchev of Carrois
|
||||
Type Design for Mozilla Firefox OS. It is closely related to
|
||||
Spiekermann's FF Meta typeface. Available in Two, Four, Eight,
|
||||
Hair, Thin, Ultra Light, Extra Light, Light, Book, Regular,
|
||||
Medium, Semi Bold, Bold, Extra Bold, Heavy weights with
|
||||
corresponding italic versions.
|
||||
'';
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
30
pkgs/data/fonts/fixedsys-excelsior/default.nix
Normal file
30
pkgs/data/fonts/fixedsys-excelsior/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ lib, fetchurl } :
|
||||
|
||||
let
|
||||
major = "3";
|
||||
minor = "00";
|
||||
version = "${major}.${minor}";
|
||||
in fetchurl rec {
|
||||
name = "fixedsys-excelsior-${version}";
|
||||
|
||||
urls = [
|
||||
"http://www.fixedsysexcelsior.com/fonts/FSEX300.ttf"
|
||||
"https://raw.githubusercontent.com/chrissimpkins/codeface/master/fonts/fixed-sys-excelsior/FSEX300.ttf"
|
||||
"http://tarballs.nixos.org/sha256/6ee0f3573bc5e33e93b616ef6282f49bc0e227a31aa753ac76ed2e3f3d02056d"
|
||||
];
|
||||
downloadToTemp = true;
|
||||
recursiveHash = true;
|
||||
postFetch = ''
|
||||
install -m444 -D $downloadedFile $out/share/fonts/truetype/${name}.ttf
|
||||
'';
|
||||
|
||||
sha256 = "32d6f07f1ff08c764357f8478892b2ba5ade23427af99759f34a0ba24bcd2e37";
|
||||
|
||||
meta = {
|
||||
description = "Pan-unicode version of Fixedsys, a classic DOS font";
|
||||
homepage = "http://www.fixedsysexcelsior.com/";
|
||||
platforms = lib.platforms.all;
|
||||
license = lib.licenses.publicDomain;
|
||||
maintainers = [ lib.maintainers.ninjatrappeur ];
|
||||
};
|
||||
}
|
||||
53
pkgs/data/fonts/font-awesome/default.nix
Normal file
53
pkgs/data/fonts/font-awesome/default.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{ lib, fetchFromGitHub }:
|
||||
let
|
||||
font-awesome = { version, sha256, rev ? version }: fetchFromGitHub {
|
||||
name = "font-awesome-${version}";
|
||||
|
||||
|
||||
owner = "FortAwesome";
|
||||
repo = "Font-Awesome";
|
||||
inherit rev;
|
||||
|
||||
postFetch = ''
|
||||
install -m444 -Dt $out/share/fonts/opentype $out/{fonts,otfs}/*.otf
|
||||
shopt -s extglob dotglob
|
||||
rm -rf $out/!(share)
|
||||
shopt -u extglob dotglob
|
||||
'';
|
||||
|
||||
inherit sha256;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Font Awesome - OTF font";
|
||||
longDescription = ''
|
||||
Font Awesome gives you scalable vector icons that can instantly be customized.
|
||||
This package includes only the OTF font. For full CSS etc. see the project website.
|
||||
'';
|
||||
homepage = "https://fontawesome.com/";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ abaldeau johnazoidberg ];
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
# Keeping version 4 and 5 because version 6 is incompatible for some icons. That
|
||||
# means that projects which depend on it need to actively convert the
|
||||
# symbols. See:
|
||||
# https://github.com/greshake/i3status-rust/issues/130
|
||||
# https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4
|
||||
# https://fontawesome.com/v6/docs/web/setup/upgrade/
|
||||
v4 = font-awesome {
|
||||
version = "4.7.0";
|
||||
rev = "v4.7.0";
|
||||
sha256 = "sha256-qdrIwxAB+z+4PXrKrj6bBuiJY0DYQuHm2DRng5sYEck=";
|
||||
};
|
||||
v5 = font-awesome {
|
||||
version = "5.15.3";
|
||||
sha256 = "sha256-EDxk/yO3nMmtM/ytrAEgPYSBbep3rA3NrKkiqf3OsU0=";
|
||||
};
|
||||
v6 = font-awesome {
|
||||
version = "6.1.1";
|
||||
sha256 = "sha256-BjK1PJQFWtKDvfQ2Vh7BoOPqYucyvOG+2Pu/Kh+JpAA=";
|
||||
};
|
||||
}
|
||||
25
pkgs/data/fonts/fraunces/default.nix
Normal file
25
pkgs/data/fonts/fraunces/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ lib, fetchzip }:
|
||||
let
|
||||
version = "1.000";
|
||||
in
|
||||
fetchzip {
|
||||
name = "fraunces-${version}";
|
||||
|
||||
url = "https://github.com/undercasetype/Fraunces/releases/download/${version}/UnderCaseType_Fraunces_${version}.zip";
|
||||
|
||||
sha256 = "0qgl140qkn9p87x7pk60fd3lj206y5h0fq2xkcj2qiv3sxbqxwqb";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts/
|
||||
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
||||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A display, “Old Style” soft-serif typeface inspired by early 20th century typefaces";
|
||||
homepage = "https://github.com/undercasetype/Fraunces";
|
||||
license = licenses.ofl;
|
||||
maintainers = [ maintainers.marsam ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue