diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2017-03-03 21:09:04 -0500 |
---|---|---|
committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2017-03-03 21:47:58 -0500 |
commit | 0832addf6798207cb1f60a8b96389424aa68b630 (patch) | |
tree | a80d748002f0e96a6bae627a6528b386d0626337 /pkgs/development/ruby-modules/gem-config/default.nix | |
parent | 171130e09a3f18a166c76df48a71ccf15e99a1c6 (diff) | |
download | nixpkgs-0832addf6798207cb1f60a8b96389424aa68b630.tar nixpkgs-0832addf6798207cb1f60a8b96389424aa68b630.tar.gz nixpkgs-0832addf6798207cb1f60a8b96389424aa68b630.tar.bz2 nixpkgs-0832addf6798207cb1f60a8b96389424aa68b630.tar.lz nixpkgs-0832addf6798207cb1f60a8b96389424aa68b630.tar.xz nixpkgs-0832addf6798207cb1f60a8b96389424aa68b630.tar.zst nixpkgs-0832addf6798207cb1f60a8b96389424aa68b630.zip |
jekyll: fix 'jekyll new'
Original error: $ nix-shell -p jekyll --command "jekyll new test" Running bundle install in /private/tmp/test... Bundler: There was an error while trying to write to Bundler: `/nix/store/l67429rhvrmr7c4c1msb7s8zjq4fx7ad-gemfile-and-lockfile/.bundle/config`. Bundler: It is likely that you need to grant write permissions for that path.
Diffstat (limited to 'pkgs/development/ruby-modules/gem-config/default.nix')
-rw-r--r-- | pkgs/development/ruby-modules/gem-config/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix index 20dc23979f5..6a83e079916 100644 --- a/pkgs/development/ruby-modules/gem-config/default.nix +++ b/pkgs/development/ruby-modules/gem-config/default.nix @@ -78,6 +78,15 @@ 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 + 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"@' + ''; + }; + # 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 |