Open b12f opened 3 years ago
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.