Skip to content

Instantly share code, notes, and snippets.

@dirn
Last active June 21, 2017 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dirn/04c9e134ab34dc76069d65e067086c3c to your computer and use it in GitHub Desktop.
Save dirn/04c9e134ab34dc76069d65e067086c3c to your computer and use it in GitHub Desktop.
PyGotham nix
with import <nixpkgs> {};
let rubyenv = bundlerEnv {
name = "pygotham-2017-ruby-env";
inherit ruby;
gemfile = ./Gemfile;
lockfile = ./Gemfile.lock;
# This can be generated using $(nix-build '<nixpkgs>' -A bundix)/bin/bundix
gemset = ./gemset.nix;
};
in stdenv.mkDerivation {
name = "pygotham-2017";
buildInputs = [
ruby_2_4
rubyenv
];
shellHook = ''
exec ${rubyenv}/bin/jekyll serve --watch
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment