Skip to content
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

Init Mobilizon #119132

Merged
merged 3 commits into from
Sep 7, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
beam/buildMix: add appConfigPath arg
This is added for Mobilizon to be able to let it's dependencies read
it's config directory
  • Loading branch information
erictapen committed Sep 5, 2023
commit 2ce391005000d2c45562e3f47e552730733738fb
11 changes: 11 additions & 0 deletions pkgs/development/beam-modules/build-mix.nix
Original file line number Diff line number Diff line change
@@ -12,6 +12,9 @@
, meta ? { }
, enableDebugInfo ? false
, mixEnv ? "prod"
# A config directory that is considered for all the dependencies of an app, typically in $src/config/
# This was initially added, as some of Mobilizon's dependencies need to access the config at build time.
, appConfigPath ? null
, ...
}@attrs:

@@ -45,6 +48,14 @@ let
runHook preConfigure

${./mix-configure-hook.sh}
${lib.optionalString (!isNull appConfigPath)
# Due to https://hexdocs.pm/elixir/main/Config.html the config directory
# of a library seems to be not considered, as config is always
# application specific. So we can safely delete it.
''
rm -rf config
cp -r ${appConfigPath} config
''}

runHook postConfigure
'';