diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2024-03-21 15:37:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-21 15:37:00 +0100 |
commit | 03ddd3c0f30939869a793f6f3435acd4beb20484 (patch) | |
tree | 319e1a10d3f5b8a41e9e4b99a0381067391b7121 | |
parent | 94830eaaa100168c87ca95c4ccbbed9887f778cd (diff) | |
parent | a9a08c474536b6ba251fd63b30f23b4655728528 (diff) | |
download | nixlib-03ddd3c0f30939869a793f6f3435acd4beb20484.tar nixlib-03ddd3c0f30939869a793f6f3435acd4beb20484.tar.gz nixlib-03ddd3c0f30939869a793f6f3435acd4beb20484.tar.bz2 nixlib-03ddd3c0f30939869a793f6f3435acd4beb20484.tar.lz nixlib-03ddd3c0f30939869a793f6f3435acd4beb20484.tar.xz nixlib-03ddd3c0f30939869a793f6f3435acd4beb20484.tar.zst nixlib-03ddd3c0f30939869a793f6f3435acd4beb20484.zip |
Merge pull request #297729 from mweinelt/pretix-langs
pretix: compile all languages at build time
-rw-r--r-- | pkgs/by-name/pr/pretix/language-build.patch | 12 | ||||
-rw-r--r-- | pkgs/by-name/pr/pretix/package.nix | 7 |
2 files changed, 18 insertions, 1 deletions
diff --git a/pkgs/by-name/pr/pretix/language-build.patch b/pkgs/by-name/pr/pretix/language-build.patch new file mode 100644 index 000000000000..b4043b95446d --- /dev/null +++ b/pkgs/by-name/pr/pretix/language-build.patch @@ -0,0 +1,12 @@ +diff --git a/src/pretix/_build_settings.py b/src/pretix/_build_settings.py +index d1ea73b84..9e13cdc87 100644 +--- a/src/pretix/_build_settings.py ++++ b/src/pretix/_build_settings.py +@@ -49,6 +49,7 @@ HAS_MEMCACHED = False + HAS_CELERY = False + HAS_GEOIP = False + SENTRY_ENABLED = False ++LANGUAGES = ALL_LANGUAGES + + for entry_point in entry_points(group='pretix.plugin'): + INSTALLED_APPS.append(entry_point.module) # noqa: F405 diff --git a/pkgs/by-name/pr/pretix/package.nix b/pkgs/by-name/pr/pretix/package.nix index dc7fc925f1f5..7b238ff6f8e4 100644 --- a/pkgs/by-name/pr/pretix/package.nix +++ b/pkgs/by-name/pr/pretix/package.nix @@ -67,6 +67,10 @@ python.pkgs.buildPythonApplication rec { # INSTALLED_APPS, so that their static files are collected. ./plugin-build.patch + # Configure django-statici18n to compile all available languages at + # build time. + ./language-build.patch + (fetchpatch2 { # Allow customization of cache and log directory # https://github.com/pretix/pretix/pull/3997 @@ -247,7 +251,6 @@ python.pkgs.buildPythonApplication rec { meta = with lib; { description = "Ticketing software that cares about your event—all the way"; - mainProgram = "pretix-manage"; homepage = "https://github.com/pretix/pretix"; license = with licenses; [ agpl3Only @@ -261,5 +264,7 @@ python.pkgs.buildPythonApplication rec { asl20 ]; maintainers = with maintainers; [ hexa ]; + mainProgram = "pretix-manage"; + platforms = platforms.linux; }; } |