summaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix14
1 files changed, 9 insertions, 5 deletions
diff --git a/default.nix b/default.nix
index 26368d6..ba2c738 100644
--- a/default.nix
+++ b/default.nix
@@ -9,10 +9,13 @@
ruby = pkgs.ruby;
gemdir = ./.;
};
+
+ shell_inputs = [ jekyll_env pkgs.imagemagick pkgs.exiftool ];
in
{
build = derivation {
inherit jekyll_env system;
+
name = "mediocre-blog";
builder = "${pkgs.bash}/bin/bash";
args = [ ./build.sh ];
@@ -22,14 +25,15 @@
};
serve = pkgs.stdenv.mkDerivation {
- name = "mediocre-blog-shell";
- buildInputs = [ jekyll_env ];
+ name = "mediocre-blog-shell-serve";
+ buildInputs = shell_inputs;
shellHook = ''
exec ${jekyll_env}/bin/jekyll serve -s ./src -d ./_site -w -I -D -H 0.0.0.0
'';
};
- env = jekyll_env;
+ shell = pkgs.stdenv.mkDerivation {
+ name = "mediocre-blog-shell";
+ buildInputs = shell_inputs;
+ };
}
-
-