Skip to content

Commit 306b6c4

Browse files
Matthieu Coudronteto
authored andcommitted
feat: add a shell.nix
to easily get the environment.
1 parent 064e75d commit 306b6c4

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

shell.nix

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
let
2+
nixpkgsRev = "e9158eca70ae59e73fae23be5d13d3fa0cfc78b4";
3+
4+
nixpkgs = builtins.fetchTarball {
5+
name = "nixos-unstable";
6+
url = "https://github.com/nixos/nixpkgs/archive/${nixpkgsRev}.tar.gz";
7+
sha256 = "0cnmvnvin9ixzl98fmlm3g17l6w95gifqfb3rfxs55c0wj2ddy53";
8+
};
9+
pkgs = import nixpkgs { };
10+
11+
rubyEnv = pkgs.ruby.withPackages(p: with p; [ nokogiri ]);
12+
in
13+
pkgs.mkShell {
14+
15+
name = "neovim-website";
16+
buildInputs = with pkgs; [ bundler rubyEnv libxml2 ];
17+
18+
shellHook = ''
19+
echo "bundle install --path .bundle"
20+
echo "bundle exec jekyll build --verbose"
21+
'';
22+
}

0 commit comments

Comments
 (0)