pub.solar/shell.nix

18 lines
561 B
Nix
Raw Normal View History

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" ''
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
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
];
}