New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rails: init at 6.0.1 #74925
rails: init at 6.0.1 #74925
Conversation
Why not update instead? and cc the maintainer? |
Hmmm... I'm a bit confused, honestly. In the first place, why are there two different ways of packaging ruby packages? There are ruby applications much less used that rails, for example taskjuggler, which are packaged under the top namespace. On the other side, rails is under |
TBH I have less knowledge then you. But, as in other packages sets, such as https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/ruby-packages.nix |
@waiting-for-dev the ruby section document explain the differences https://github.com/NixOS/nixpkgs/blob/e16df73d3040526fdf5f6a34adae79dedb0387ba/doc/languages-frameworks/ruby.section.md. In this case you need to update the default gemset, in order to update rails. For rails development, I recommend to use |
Thanks for pointing me out that documentation @marsam . TBH I hadn't seen it before.
I'm still confused... I guess that for Ruby package we understand any Ruby program which hasn't been packed as a gem by its developers... Anyway, I'm not sure it's a consistent differentiation right now. For example, |
I'm trying to update rails through According to my understanding, all gems that will be available through In this case, trying to update rails doesn't go beyond 4.2 version, only because another listed gem called cocoapods depends on activesupport >= 4 < 5, while rails 6 (last version) requires activesupport 6. I think it's extremely problematic to depend on all gem maintainers keeping its dependencies updated in order to provide updated ruby packages for nix. WDYT? |
Yea well, this is one of those issues with Nixpkgs in general that need attention you might want to get attention for in NixOS/rfcs. I don't have a strong opinion here as I'm not familiar with the Rails/Ruby ecosystem in Nixpkgs... Sorry. |
IIUC
keep in mind that
Agree, this is a general issue when maintaining packagesets in nixpkgs, in {python,haskell}-packages we have to keep only one version of each package. cc: @manveru would you mind shedding some light on this? |
The only but not minor benefit would be to be able to execute |
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
Still important to me |
@waiting-for-dev: Have you found a way round the above? I'm still using the workaround you mention above. |
I marked this as stale due to inactivity. → More info |
Please rebase |
Motivation for this change
Adds Ruby on Rails framework. It already exists a
rails
attribute inrubyPackages
but it is completely outdated. I'm a little puzzled, but I think that the recommended current way of packaging gems is throughbundix
, as this PR does.References #45980
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @