aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTudor Roman2021-01-26 11:29:49 +0200
committerTudor Roman2021-01-26 11:29:49 +0200
commit2ef4aaf848869aecea117a4e775cc43a562d31b2 (patch)
tree8ce3ab15006547fd290ef3e59f509af7176f4bd6
parent0be6e8c79d2bf68ecc54da49adb11c2db01cc7f3 (diff)
downloadblog-2ef4aaf848869aecea117a4e775cc43a562d31b2.tar.gz
blog-2ef4aaf848869aecea117a4e775cc43a562d31b2.zip
nix shell support
-rw-r--r--.envrc1
-rw-r--r--shell.nix20
2 files changed, 21 insertions, 0 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 0000000..051d09d
--- /dev/null
+++ b/.envrc
@@ -0,0 +1 @@
+eval "$(lorri direnv)"
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 0000000..ddcde36
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,20 @@
+with import <nixpkgs> { };
+
+let jekyllEnv = bundlerEnv rec {
+ name = "jekyllEnv";
+ inherit ruby;
+ gemfile = ./Gemfile;
+ lockfile = ./Gemfile.lock;
+ gemset = ./gemset.nix;
+};
+in
+pkgs.mkShell {
+ buildInputs = with pkgs; [
+ jekyllEnv
+ bundler
+ ruby
+
+ # keep this line if you use bash
+ bashInteractive
+ ];
+}