Skip to content

Instantly share code, notes, and snippets.

@nyarly
Created February 17, 2017 18:15
Show Gist options
  • Save nyarly/f96e1823bca6462b719953316743898f to your computer and use it in GitHub Desktop.
Save nyarly/f96e1823bca6462b719953316743898f to your computer and use it in GitHub Desktop.
{ pkgs ? import <nixpkgs> {} }:
let
inherit (pkgs) lib stdenv ruby bundler bundlerEnv;
rubyEnv = bundlerEnv {
name = "jekyll-blog";
ruby = ruby; #ruby_1_9;
gemfile = ./Gemfile;
lockfile = ./Gemfile.lock;
gemset = ./gemset.nix;
};
in stdenv.mkDerivation {
name = "blog-shell";
src = ./.;
/*
passthru = {
inherit (rubyEnv) env;
};
*/
buildInputs = [
rubyEnv
bundler
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment