diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2017-04-30 20:41:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-30 20:41:20 +0200 |
commit | 4540123a0cf6f9c2a3c0526e4e003f53e84749eb (patch) | |
tree | f95add26a36b12643c7e0c0f4853ab0fcfb6646e /pkgs/development/ruby-modules/gem-config | |
parent | 472fbe651f6107aac7e8fdfdb57f8e17a5fc1782 (diff) | |
parent | 212340bc6b893a9b947cb0ce68531dad75749ce8 (diff) | |
download | nixlib-4540123a0cf6f9c2a3c0526e4e003f53e84749eb.tar nixlib-4540123a0cf6f9c2a3c0526e4e003f53e84749eb.tar.gz nixlib-4540123a0cf6f9c2a3c0526e4e003f53e84749eb.tar.bz2 nixlib-4540123a0cf6f9c2a3c0526e4e003f53e84749eb.tar.lz nixlib-4540123a0cf6f9c2a3c0526e4e003f53e84749eb.tar.xz nixlib-4540123a0cf6f9c2a3c0526e4e003f53e84749eb.tar.zst nixlib-4540123a0cf6f9c2a3c0526e4e003f53e84749eb.zip |
Merge pull request #23471 from veprbl/jekyll
jekyll: 3.0.1 -> 3.4.1
Diffstat (limited to 'pkgs/development/ruby-modules/gem-config')
-rw-r--r-- | pkgs/development/ruby-modules/gem-config/default.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix index e115b2c679d9..83346037dad3 100644 --- a/pkgs/development/ruby-modules/gem-config/default.nix +++ b/pkgs/development/ruby-modules/gem-config/default.nix @@ -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 |