diff --git a/flake.nix b/flake.nix index 02c596e99..8d39a651c 100644 --- a/flake.nix +++ b/flake.nix @@ -195,6 +195,9 @@ web-static-files = self.callPackage ./nix/pkgs/web-static-files.nix { inherit timeless-fonts-src ibm-plex-mono-src; }; + ogre-fonts = self.callPackage ./nix/pkgs/ogre-fonts.nix { + inherit timeless-fonts-src; + }; appview = self.callPackage ./nix/pkgs/appview.nix {}; blog = self.callPackage ./nix/pkgs/blog.nix {}; docs = self.callPackage ./nix/pkgs/docs.nix {}; @@ -358,6 +361,7 @@ appview appview-static-files web-static-files + ogre-fonts blog lexgen goat @@ -553,6 +557,8 @@ rm -rf docs/public/fonts mkdir -p docs/public cp -fr --no-preserve=ownership,mode ${packages'.web-static-files}/fonts docs/public/fonts + rm -rf ogre/fonts + cp -fr --no-preserve=ownership,mode ${packages'.ogre-fonts} ogre/fonts ) export TANGLED_OAUTH_CLIENT_KID="$(date +%s)" export TANGLED_OAUTH_CLIENT_SECRET="$(${packages'.goat}/bin/goat key generate -t P-256 | grep -A1 "Secret Key" | tail -n1 | awk '{print $1}')" diff --git a/nix/pkgs/ogre-fonts.nix b/nix/pkgs/ogre-fonts.nix new file mode 100644 index 000000000..34ca9f8d3 --- /dev/null +++ b/nix/pkgs/ogre-fonts.nix @@ -0,0 +1,10 @@ +{ + runCommandLocal, + timeless-fonts-src, +}: +runCommandLocal "ogre-fonts" {} '' + mkdir -p $out + cp -f ${timeless-fonts-src}/Sans-Grotesk/static/otf/TimelessSans-GroteskRegular.otf $out/ + cp -f ${timeless-fonts-src}/Sans-Grotesk/static/otf/TimelessSans-GroteskMedium.otf $out/ + cp -f ${timeless-fonts-src}/LICENSE.pdf $out/ +'' diff --git a/ogre/.gitignore b/ogre/.gitignore index bb24ea175..8771fdcd9 100644 --- a/ogre/.gitignore +++ b/ogre/.gitignore @@ -2,3 +2,4 @@ node_modules/ output/ .wrangler/ .DS_Store +fonts/