Merge remote-tracking branch 'nixos/master' into bundlerenv_usecases
This commit is contained in:
@@ -5,9 +5,9 @@ buildRubyGem rec {
|
||||
|
||||
name = "${gemName}-${version}";
|
||||
gemName = "bundix";
|
||||
version = "2.0.8";
|
||||
version = "2.1.0";
|
||||
|
||||
sha256 = "0ikpf2g01izadjpdnc4k2rb9v4g11f1jk2y5alxc7n7rxjkwdc66";
|
||||
sha256 = "5a073c59dfc7e2367c47e6513fc8914d27e11c08f82bc1103c4793dfb2837bef";
|
||||
|
||||
buildInputs = [bundler];
|
||||
|
||||
|
||||
@@ -78,6 +78,18 @@ in
|
||||
[ darwin.apple_sdk.frameworks.CoreServices ];
|
||||
};
|
||||
|
||||
# disable bundle install as it can't install anything in addition to what is
|
||||
# specified in pkgs/applications/misc/jekyll/Gemfile anyway. Also do chmod_R
|
||||
# to compensate for read-only files in site_template in nix store.
|
||||
jekyll = attrs: {
|
||||
postInstall = ''
|
||||
installPath=$(cat $out/nix-support/gem-meta/install-path)
|
||||
sed -i $installPath/lib/jekyll/commands/new.rb \
|
||||
-e 's@Exec.run("bundle", "install"@Exec.run("true"@' \
|
||||
-e 's@FileUtils.cp_r site_template + "/.", path@FileUtils.cp_r site_template + "/.", path; FileUtils.chmod_R "u+w", path@'
|
||||
'';
|
||||
};
|
||||
|
||||
# note that you need version >= v3.16.14.8,
|
||||
# otherwise the gem will fail to link to the libv8 binary.
|
||||
# see: https://github.com/cowboyd/libv8/pull/161
|
||||
@@ -211,7 +223,7 @@ in
|
||||
buildInputs = [ curl ];
|
||||
};
|
||||
|
||||
tzinfo = attrs: {
|
||||
tzinfo = attrs: lib.optionalAttrs (lib.versionAtLeast attrs.version "1.0") {
|
||||
dontBuild = false;
|
||||
postPatch = ''
|
||||
substituteInPlace lib/tzinfo/zoneinfo_data_source.rb \
|
||||
|
||||
Reference in New Issue
Block a user