diff options
| -rw-r--r-- | default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/default.nix b/default.nix index 02a5455..4abdca3 100644 --- a/default.nix +++ b/default.nix @@ -28,6 +28,12 @@ let "grid" ])); + robotsTXT = builtins.toFile "robots.txt" '' + user-agent: * + disallow: /static/ + allow: /static/icon.png + ''; + in pkgs.callPackage ({ # Packages line-awesome, line-awesome-css, uncss, yuicompressor, imagemagick, @@ -50,6 +56,7 @@ in pkgs.callPackage ({ set -o xtrace mkdir $out && pushd "$_" ln -sT ${index-html} index.html + ln -sT ${robotsTXT} robots.txt popd mkdir $out/static && pushd "$_" |
