Fix localization in pretix
This commit is contained in:
parent
abe4fdfd7c
commit
45872f9bdc
1 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
'';
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue