Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loadRubyEnv is called, cstrahan removed it a while ago #5

Open
gavinrogers opened this issue May 25, 2016 · 3 comments
Open

loadRubyEnv is called, cstrahan removed it a while ago #5

gavinrogers opened this issue May 25, 2016 · 3 comments

Comments

@gavinrogers
Copy link

gavinrogers commented May 25, 2016

Following the README, I run the following:

 git:(master) nix-shell ~/git/bundix --shell 'bundix expr'
error: attribute ‘loadRubyEnv’ missing, at /Users/gavin/git/bundix/default.nix:5:17

Which was removed at NixOS/nixpkgs@e47e284

@cstrahan tagging you

@gavinrogers
Copy link
Author

Note that I've just done the $(nix-build '<nixpkgs>' -A bundix)/bin/bundix method, perhaps simply putting this into the README here would be the best solution? Is this repo deprecated? If you'd like a deprecation note in the README I can write one and give a PR

@aflatter
Copy link
Owner

aflatter commented Jun 8, 2016

@gavinrogers Sorry for the long delay... To be honest I'm not sure whether bundix is of any value in its current state as I haven't followed Ruby packaging in Nix for some time. What do you want to use bundix for? Are you setting up a development environment or are you packaging a Ruby application?

@grahamc
Copy link

grahamc commented Jun 13, 2016

this works for me:

{ pkgs ? import ../nixpkgs {} }:
let
  inherit (pkgs) lib stdenv ruby_1_9 bundlerEnv;

  rubyEnv = bundlerEnv {
    name = "myproject";

    ruby = ruby_1_9;

    gemfile = ./Gemfile;
    lockfile = ./Gemfile.lock;
    gemset = ./gemset.nix;
  };
in stdenv.mkDerivation {
  name = "myproject-shell";
  src = ./.;
  buildInputs = [
    rubyEnv
  ];

  shellHook = ''
    rackup
  '';
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants