diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2021-07-31 11:35:39 -0600 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2021-07-31 11:35:39 -0600 |
commit | f1998c321a4eec6d75b58d84aa8610971bf21979 (patch) | |
tree | a90783eb296cc50e1c48433f241624f26b99be27 /default.nix | |
parent | 03a35dcc38b055f15df160bd300969e3b703d4b1 (diff) |
move static files into static sub-dir, refactor nix a bit
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/default.nix b/default.nix deleted file mode 100644 index ba2c738..0000000 --- a/default.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ - pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/cd63096d6d887d689543a0b97743d28995bc9bc3.tar.gz") {}, - system ? builtins.currentSystem, -}: - - let - jekyll_env = pkgs.bundlerEnv { - name = "jekyll_env"; - 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 ]; - - src = ./src; - stdenv = pkgs.stdenv; - }; - - serve = pkgs.stdenv.mkDerivation { - 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 - ''; - }; - - shell = pkgs.stdenv.mkDerivation { - name = "mediocre-blog-shell"; - buildInputs = shell_inputs; - }; - } |