Files
net-deertopia/ibm-plex-web.nix
Madeleine Sydney Ślaga 2cc1a079a7
All checks were successful
build / build (push) Successful in 57s
2026-04-03 13:25:23 -06:00

22 lines
576 B
Nix

# Differs from the Nixpkgs distribution in that we distribute WOFFs
# and CSS rather than just OTF.
{ ibm-plex
, families ? []
}@args:
(ibm-plex.overrideAttrs (_prev: {
installPhase = ''
runHook preInstall
for i in $srcs; do
# cp $i/css/*.css $out/css
for j in css fonts/{complete,split}/{woff,woff2}; do
if [ -d $i/$j ]; then
find $i/$j -type f -regex '.*\.\(woff2?\|css\)' \
-exec install -Dm644 -t $out/share/ibm-plex-web/$j {} \;
fi
done
done
runHook postInstall
'';
})).override { inherit families; }