gem-config: fix bundler

This commit is contained in:
Michael Fellinger 2016-04-17 22:36:40 +02:00
parent 3841029b81
commit 7d974e7eef
No known key found for this signature in database
GPG Key ID: 29346DF9068A7479

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";
};
}