Browse Source

Rails: put Ruby environment into propagatedBuildInputs so it shows up in a nix-shell

This is the first step to getting nix-copy-closure deployments to pick
up a new gemset (if one exists).
master
Peter J. Jones 4 months ago
parent
commit
dacaa53e48
Signed by: Peter Jones <pjones@devalot.com> GPG Key ID: 9DAFAA8D01941E49
1 changed files with 11 additions and 3 deletions
  1. 11
    3
      modules/services/web/rails/helpers.nix

+ 11
- 3
modules/services/web/rails/helpers.nix View File

@@ -16,9 +16,17 @@ let
, ...
}@args:
pkgs.stdenv.mkDerivation (args // {
buildInputs = [ env env.wrappedRuby ] ++ buildInputs;
propagatedBuildInputs = extraPackages ++ propagatedBuildInputs;
passthru = { rubyEnv = env; ruby = env.wrappedRuby; };
buildInputs = buildInputs;

propagatedBuildInputs =
[ env env.wrappedRuby ]
++ extraPackages
++ propagatedBuildInputs;

passthru = {
rubyEnv = env;
ruby = env.wrappedRuby;
};

buildPhase = ''
${buildPhase}

Loading…
Cancel
Save