Created
November 29, 2021 13:54
-
-
Save akoppela/41be5600dff93bd00df33b88ab717e71 to your computer and use it in GitHub Desktop.
Add font to NixOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<match target="font"> | |
<test name="family" compare="contains" ignore-blanks="true"> | |
<string>PragmataPro</string> | |
</test> | |
<edit name="fontfeatures" mode="append"> | |
<string>ss12 on</string> | |
<string>ss13 on</string> | |
</edit> | |
</match> | |
</fontconfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> { } | |
}: | |
pkgs.stdenv.mkDerivation rec { | |
pname = "pragmatapro"; | |
version = "0.829"; | |
src = ./.; | |
installPhase = '' | |
mkdir -p $out/share/fonts/opentype | |
cp -R OTF/* $out/share/fonts/opentype | |
mkdir -p $out/etc/fonts/conf.d | |
cp -R conf.d/* $out/etc/fonts/conf.d | |
''; | |
meta = { | |
description = "PragmataPro™ is a condensed monospaced font optimized for screen, designed by Fabrizio Schiavi to be the ideal font for coding, math and engineering."; | |
homepage = "https://fsd.it/shop/fonts/pragmatapro"; | |
maintainers = [ pkgs.lib.maintainers.akoppela ]; | |
platforms = pkgs.lib.platforms.all; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment