diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2021-02-26 13:56:52 -0700 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2021-02-26 13:56:52 -0700 |
commit | 82480242771b66f5eff9be4598f38e7ba6259f6a (patch) | |
tree | 28657d8e26c770c300687be1a3abcad780ebeba4 /default.nix | |
parent | 345faf3e8990ce6fd58fff5a24a6b3df806beccc (diff) |
wedding
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 14 |
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; + }; } - - |