Ruby gems: Install all dependent gems in the user environment

svn path=/nixpkgs/trunk/; revision=32370
This commit is contained in:
Shea Levy 2012-02-17 21:40:14 +00:00
parent 2fb0d1c6c7
commit 86710c1fe6

View File

@ -40,6 +40,15 @@ let
runHook postInstall
'';
propagatedUserEnvPkgs = requiredGems;
postFixup = ''
if [ -n "$propagatedUserEnvPkgs" ]; then
mkdir -p "$out/nix-support"
echo "$propagatedUserEnvPkgs" > "$out/nix-support/propagated-user-env-packages"
fi
'';
};
mb = stdenv.lib.maybeAttr;
patchedGem = a: stdenv.mkDerivation (removeAttrs (stdenv.lib.mergeAttrsByFuncDefaults