Add development nix shell

This commit is contained in:
Agatha Lovelace 2023-02-15 20:20:21 +01:00
parent a6476f6fc9
commit 0981023ad6
Signed by: sorceress
GPG Key ID: 01D0B3AB10CED4F8
1 changed files with 26 additions and 0 deletions

26
default.nix Normal file
View File

@ -0,0 +1,26 @@
with import <nixpkgs> { };
let
jekyll_env = pkgs.bundlerEnv {
name = "jekyll_env";
ruby = pkgs.ruby;
gemdir = ./.;
};
in pkgs.stdenv.mkDerivation {
name = "vampysite";
buildInputs = with pkgs; [
jekyll_env
# nokogiri dependencies
zlib
libiconv
libxml2
libxslt
nodejs-slim
];
shellHook = ''
exec bundle exec jekyll serve --livereload
'';
}