Merge pull request #14787 from manveru/gem-config

gem-config: fix bundler
This commit is contained in:
zimbatm 2016-04-18 10:14:07 +01:00
commit f8e020bb6b

View File

@ -166,5 +166,15 @@ in
export XAPIAN_CONFIG=${xapian}/bin/xapian-config
'';
};
# patching shebangs would fail on the templates/Executable file, so we
# temporarily remove the executable flag.
bundler = attrs:
let
templates = "${attrs.ruby.gemPath}/gems/${attrs.gemName}-${attrs.version}/lib/bundler/templates/";
in {
preFixup = "chmod -x $out/${templates}/Executable";
postFixup = "chmod +x $out/${templates}/Executable";
};
}