You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to package openproject for nix, but am relatively new to both nix packaging and the ruby ecosystem. The Gemfile for op contains a couple of gems that are part of the git repository itself. Bundix generates a gemset.nix with e.g. the following gem:
budgets = {
groups = ["opf_plugins"];
platforms = [];
source = {
path = modules/budgets;
type = "path";
};
version = "1.0.0";
};
This of course breaks when trying to get a bundlerEnv going, since the modules/budgets path is not available outside of the openproject repo.
My initial idea was to download the sources, apply the gemset via a patch, and then use the source derivation as the gemdir. However, this breaks dramatically with nix-build running into a segfault.
Any ideas? My current derivation attempt is below.
I should add that building just the source derivation in the code above works fine and applies the patch without problems. I'm guessing this is a problem with stuff being available while the nix language evaluates vs. when derivations are built; source is built after rubyEnv is evaluated. However, how would you then go about doing this?
Hello,
I'm trying to package openproject for nix, but am relatively new to both nix packaging and the ruby ecosystem. The Gemfile for op contains a couple of gems that are part of the git repository itself. Bundix generates a
gemset.nix
with e.g. the following gem:This of course breaks when trying to get a bundlerEnv going, since the
modules/budgets
path is not available outside of the openproject repo.My initial idea was to download the sources, apply the gemset via a patch, and then use the source derivation as the gemdir. However, this breaks dramatically with nix-build running into a segfault.
Any ideas? My current derivation attempt is below.
The text was updated successfully, but these errors were encountered: