2022-10-02 18:46:42 +00:00
|
|
|
with (import (fetchTarball https://github.com/nixos/nixpkgs/archive/nixpkgs-unstable.tar.gz) {});
|
2022-10-03 00:02:47 +00:00
|
|
|
let
|
|
|
|
google-font-downloader = writeShellScriptBin "google-font-downloader" ''
|
2022-10-03 00:17:10 +00:00
|
|
|
echo "Attempting to fetch $1"
|
|
|
|
${nodejs}/bin/npx google-font-downloader -- $1
|
|
|
|
rm ./_includes/styles/typography.css
|
|
|
|
echo "/* To regenerate this file, run $ google-font-downloader '$1' */" >> ./_includes/styles/typography.css
|
|
|
|
echo "" >> ./_includes/styles/typography.css
|
|
|
|
cat ./google-fonts-*.css >> ./_includes/styles/typography.css
|
|
|
|
rm ./google-fonts-*.css
|
2022-10-03 00:02:47 +00:00
|
|
|
'';
|
|
|
|
in
|
2022-10-02 18:46:42 +00:00
|
|
|
mkShell {
|
2021-05-30 14:55:34 +00:00
|
|
|
buildInputs = [
|
2022-10-02 18:46:42 +00:00
|
|
|
deno
|
2022-10-03 00:02:47 +00:00
|
|
|
google-font-downloader
|
2021-05-30 14:55:34 +00:00
|
|
|
];
|
2022-10-03 16:54:26 +00:00
|
|
|
|
|
|
|
shellHook = ''
|
|
|
|
deno run -A https://deno.land/x/lume@v1.12.0/install.ts
|
|
|
|
'';
|
2021-05-30 14:55:34 +00:00
|
|
|
}
|