nix-config/pkgs/sf-pro/package.nix
Jordan Holt ed7829883d
Some checks failed
Check flake / build-amd64-linux (push) Failing after 3m23s
sf-pro: init
2025-04-14 21:19:48 +01:00

30 lines
730 B
Nix

{
stdenv,
fetchFromGitHub,
lib,
}:
stdenv.mkDerivation {
pname = "sf-pro";
version = "unstable-2021-06-22";
src = fetchFromGitHub {
owner = "sahibjotsaggu";
repo = "San-Francisco-Pro-Fonts";
rev = "8bfea09aa6f1139479f80358b2e1e5c6dc991a58";
sha256 = "sha256-mAXExj8n8gFHq19HfGy4UOJYKVGPYgarGd/04kUIqX4=";
};
installPhase = ''
mkdir -p $out/share/fonts/opentype
mkdir -p $out/share/fonts/truetype
install -m644 $src/*.otf $out/share/fonts/opentype/
install -m644 $src/*.ttf $out/share/fonts/truetype/
'';
meta = {
description = "San Francisco Pro fonts";
homepage = "https://github.com/sahibjotsaggu/San-Francisco-Pro-Fonts";
license = lib.licenses.unfree;
};
}