first
This commit is contained in:
commit
2203a06c02
12 changed files with 315 additions and 0 deletions
23
fonts/pragmatapro.nix
Normal file
23
fonts/pragmatapro.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ pkgs ? import <nixpkgs> {} }:
|
||||
pkgs.stdenv.mkDerivation rec {
|
||||
pname = "pragmatapro";
|
||||
version = "0.830";
|
||||
|
||||
buildInputs = [ pkgs.woff2 pkgs.unzip ];
|
||||
src = pkgs.requireFile {
|
||||
name = "PPw-usp24.zip";
|
||||
url = "https://fsd.it/shop/fonts/pragmatapro";
|
||||
hash = "sha256-9su/so8ylfIvuztqXCwApN5S4xs38ZzO9raQZDr9pzQ=";
|
||||
};
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
installPhase = ''
|
||||
subdir="PragmataPro${version}W"
|
||||
for font in $subdir/*.woff2; do
|
||||
${pkgs.woff2}/bin/woff2_decompress $font
|
||||
done
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
cp $subdir/*.ttf $out/share/fonts/truetype
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue