mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
gem-config: fix bundler
This commit is contained in:
parent
c09692ede5
commit
55bd038cc1
@ -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";
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user