Skip to content

Commit

Permalink
package fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Feb 6, 2024
1 parent d17d920 commit 996d73b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions flake.nix
Expand Up @@ -91,6 +91,25 @@
'';
};

packages.bytes-zone-fonts = pkgs.stdenv.mkDerivation {
name = "bytes.zone-fonts";
src = builtins.filterSource (path: type:
type == "directory" || builtins.match ".+woff2$" path != null)
./static;

buildPhase = ''
true
'';

installPhase = ''
mkdir -p $out/share/bytes.zone
for file in $(find . -type f); do
mkdir -p $out/share/bytes.zone/$(dirname $file)
mv $file $out/share/bytes.zone/$file
done
'';
};

packages.bytes-zone-pngs = pkgs.stdenv.mkDerivation {
name = "bytes.zone-pngs";
src = builtins.filterSource (path: type:
Expand All @@ -115,6 +134,7 @@
name = "bytes.zone";
paths = [
packages.bytes-zone-css
packages.bytes-zone-fonts
packages.bytes-zone-js
packages.bytes-zone-pngs
packages.bytes-zone-public
Expand Down

0 comments on commit 996d73b

Please sign in to comment.