aboutsummaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/default.nix b/default.nix
index 2655a59..76994ac 100644
--- a/default.nix
+++ b/default.nix
@@ -4,6 +4,7 @@ let
src = pkgs.nix-gitignore.gitignoreSourcePure [
"/result*"
"/_site/"
+ "/public/"
"/.jekyll-cache/"
] ./.;
utils-i18n = pkgs.callPackage ./nix/utils-i18n.nix { };
@@ -36,6 +37,8 @@ let
inkscape
imagemagick
+ pandoc
+ gettext
perl
graphviz
nixfmt
@@ -54,11 +57,10 @@ let
};
in rec {
site = drv "site" ''
- export JEKYLL_ENV=production
- jekyll build -d $out --trace
+ make public
+ mv public $out
'';
test = drv "test" ''
- export JEKYLL_ENV=production
make check
touch $out
'';
@@ -86,7 +88,7 @@ in rec {
};
publishScript = pkgs.writeShellScriptBin "publish.sh" ''
set -eux
- SERVER_URL='root@euandre.org'
+ SERVER_URL='euandre.org'
REMOTE_PATH='/home/user-data/www/default/'
OUT_DOCS='${site}'
${pkgs.openssh}/bin/ssh "$SERVER_URL" rm -rf "$REMOTE_PATH/*"