Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created June 10, 2017 14:00
Show Gist options
  • Save grahamc/63365404c315216fabe30e03740a2443 to your computer and use it in GitHub Desktop.
Save grahamc/63365404c315216fabe30e03740a2443 to your computer and use it in GitHub Desktop.
etcdv3-env = bundlerEnv rec {
name = "etcdv3-env";
inherit ruby;
gemfile = ./Gemfile;
lockfile = ./Gemfile.lock;
gemset = ./gemset.nix;
gemConfig = pkgs.defaultGemConfig // {
etcdv3 = attrs: {
src = patched {
patches = [
./0001-use-find-over-git.patch
];
src = fetchFromGitHub {
owner = "davissp14";
repo = "etcdv3-ruby";
rev = "0.5.1";
sha256 = "0k2mrnlm3f319rkpcgcdx1j52v3y7hqyn40mmxhbr02qgzfnh4fd";
};
};
};
grpc = attrs: {
buildInputs = [ pkgconfig openssl zlib ];
postInstall = ''
# may not be necessary anymore:
cp $out/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0/grpc-1.2.0/grpc/grpc_c.so $out/lib/ruby/gems/2.3.0/gems/grpc-1.2.0/src/ruby/lib/grpc/
'';
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment