forked from pub-solar/pub.solar
18 lines
561 B
Nix
18 lines
561 B
Nix
with (import (fetchTarball https://github.com/nixos/nixpkgs/archive/nixpkgs-unstable.tar.gz) {});
|
|
let
|
|
google-font-downloader = writeShellScriptBin "google-font-downloader" ''
|
|
echo "Attempting to fetch $1"
|
|
${nodejs}/bin/npx google-font-downloader -- $1
|
|
rm ./styles/typography.css
|
|
echo "/* To regenerate this file, run $ google-font-downloader '$1' */" >> ./styles/typography.css
|
|
echo "" >> ./styles/typography.css
|
|
cat ./google-fonts-*.css >> ./styles/typography.css
|
|
'';
|
|
in
|
|
mkShell {
|
|
buildInputs = [
|
|
deno
|
|
google-font-downloader
|
|
];
|
|
}
|