Fix localization in pretix

This commit is contained in:
Jakob Lechner 2023-02-25 23:23:30 +00:00
parent abe4fdfd7c
commit 45872f9bdc
No known key found for this signature in database
GPG key ID: 996082EFB5906C10

View file

@ -1,6 +1,7 @@
{ lib
, poetry2nix
, pkgs
, gettext
, tlds-alpha-by-domain ? ./tlds-alpha-by-domain.txt
}:
@ -44,6 +45,17 @@ poetry2nix.mkPoetryApplication rec {
preBuild = "cp ${tlds-alpha-by-domain} ./tlds-alpha-by-domain.txt";
}
);
pretix = super.pretix.overridePythonAttrs (
old: {
buildInputs = (old.buildInputs or [ ]) ++ [
gettext
];
preFixup = ''
python -m pretix compilemessages
python -m pretix compilejsi18n
'';
}
);
}
);
}