summary refs log tree commit diff
path: root/pkgs/development/ruby-modules/bundled-common
Commit message (Collapse)AuthorAge
* bundlerEnv: fix for Ruby 2.7Alyssa Ross2019-12-26
| | | | | | | | | | | Setting a Bundler version with GEM_PATH doesn't seem to work in Ruby 2.7, so we need to use the LOAD_PATH instead. Without this, bundlerEnv environments will always use the version of Bundler that comes with Ruby, which won't necessarily work because it isn't the version that was used to generate the bundle. For example, building ronn with Ruby 2.7 without this change results in a broken executable, but it works (when built with all packaged Ruby versions) after this change.
* treewide: remove redundant quotesvolth2019-08-26
|
* treewide: remove unused variables (#63177)volth2019-06-16
| | | | | | * treewide: remove unused variables * making ofborg happy
* bundlerEnv: always include default gemsAlyssa Ross2018-12-11
| | | | | | | "default" isn't really a group, it's more the absence of one. With Bundler, this means that a gem should be installed unconditionally, regardless of which groups are specified. It doesn't really make sense to allow these gems to be omitted from a bundlerEnv.
* bundlerEnv: include all groups by defaultAlyssa Ross2018-12-11
| | | | | | | | | | | | | This wasn't really an issue until the latest minor release of Bundix (2.4), because prior to then Bundix didn't emit group attributes, and so this functionality of bundlerEnv wasn't really used. However, it is now apparent that a better default for bundlerEnv would be to include all gem groups by default, not just the default group. This matches the behavior of Bundler, and makes more sense, because the default group alone isn't necessarily useful for anything -- consider a Rails app with production, development, and test groups. It has the additional benefit of being backwards compatible with how this would have worked before the Bundix update.
* bundlerEnv: ensure dependencies always includedAlyssa Ross2018-12-11
| | | | | | | | | | | | | | | | | | | | | | | | Suppose I have a Gemfile like this: source "https://rubygems.org" gem "actioncable" gem "websocket-driver", group: :test The gemset.nix generated by Bundix 2.4.1 will set ActionCable's groups to [ "default" ], and websocket-driver's to [ "test" ]. This means that the generated bundlerEnv wouldn't include websocket-driver unless the test group was included, even though it's required by the default group. This is arguably a bug in Bundix (websocket-driver's groups should probably be [ "default" "test" ] or just [ "default" ]), but there's no reason bundlerEnv should omit dependencies even given such an input -- it won't necessarily come from Bundix, and it would be good for bundlerEnv to do the right thing. To fix this, filterGemset is now a recursive function, that adds dependencies of gems in the group to the filtered gemset until it stabilises on the gems that match the required groups, and all of their recursive dependencies.
* Bugfix: gemsets didn't handle paths correctly (#51002)Judson Lester2018-11-25
|
* bundlerApp: take buildInputs (#45435)Alyssa Ross2018-10-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It would be reasonable to have a Ruby program that depends on some other program being in the PATH. In this case, the obvious thing to do would be something like this: bundlerApp { # ... buildInputs = [ makeWrapper ]; postBuild = '' wrapProgram "$out/bin/foo" \ --prefix PATH : ${lib.makeBinPath [ dep ]} ''; } However, this doesn't work, because even though it just forwards most of its arguments to `runCommand`, `bundlerApp` won't take a `buildInputs` parameter. It doesn't even specify its own `buildInputs`, which means that the `scripts` parameter to `bundlerApp` (which depends on `makeWrapper`) is completely broken, and, as far as I can tell, has been since its inception. I've added a `makeWrapper` build input if the scripts parameter is present to fix this. I've added a `buildInputs` option to `bundlerApp`. It's also passed through to bundled-common because `postBuild` scripts are run there as well. This actually means that in this example we'd end up going through two layers of wrappers (one from `bundlerApp` and one from bundled-common), but that has always been the case and isn't likely to break anything. That oddity does suggest that it might be prudent to not forward `postBuild` to bundled-common (or to at least use a different option) though... FWIW, as far as I can tell no package in nixpkgs uses either the `scripts` or `postBuild` options to `bundlerApp`.
* [bot] treewide: remove unused 'args@' in lambdasvolth2018-07-20
|
* ruby-modules: Import gemset if it's a path OR a string. (#38959)Raitis Veinbahs2018-04-15
| | | | | | This fixes the bug introduced by 8686b98612dc which broke bundlerEnv exprs when gemdir was a string (thus making gemset a string by `gemset = gemdir + "/gemset.nix"`) which made it being treated as a set.
* ruby treewide: don't merge source into top-levelAneesh Agrawal2018-01-04
| | | | | | | | | | | Keep the `source` attrset distinct to prevent its entries from merging with the top level attrs. Since each type of source has a different set of entries for `source`, this is the easiest way to keep them together. This will pave the way for a new `url` type of source. This is a mass-rebuild of many ruby packages, notably those using `git` type sources.
* ruby-modules: Allow overriding gemsetAneesh Agrawal2018-01-04
| | | | | | This allows patching the gemset output by bundix from a default.nix file, making it easier to perform updates since the bundix update no longer has to be manually updated.
* bundlerEnv: support unicode executables (#31145)Michael Fellinger2017-11-03
|
* fix evaluationRobin Gloster2017-07-30
| | | | cc @nyarly
* Small changes in response to review.Judson2017-07-02
|
* Using pname and fetching versionsJudson2017-06-27
|
* A few cleanups and renames. One feature remains...Judson2017-06-27
|
* Fixing an overload of "pname"Judson2017-06-25
|
* Made gemdir handling into a common functionJudson2017-06-09
|
* Merge branch 'bundlerenv_usecases' of github.com:nyarly/nixpkgs into ↵Judson2017-05-31
|\ | | | | | | bundlerenv_usecases
| * fix missing variable in bundler-envzimbatm2017-05-29
| |
* | Starting to add tool builder. Extracting bundler file computation.Judson2017-05-31
|/
* Restructuring filesJudson2017-05-27