mailman: init package for Mailman CLI

We already had python3Packages.mailman, but that's only really usable
as a library.  The only other option was to create a whole Python
environment, which was undesirable to install as a system-wide
package.
This commit is contained in:
Alyssa Ross
2020-01-30 23:14:45 +00:00
parent 8d9636e092
commit a8538a73a7
4 changed files with 29 additions and 23 deletions
+3 -6
View File
@@ -28,15 +28,12 @@ buildPythonPackage rec {
'';
# Mailman assumes that those scripts in $out/bin are Python scripts. Wrapping
# them in shell code breaks this assumption. The proper way to use mailman is
# to create a specialized python interpreter:
#
# python37.withPackages (ps: [ps.mailman])
# them in shell code breaks this assumption. Use the wrapped version (see
# wrapped.nix) if you need the CLI (rather than the Python library).
#
# This gives a properly wrapped 'mailman' command plus an interpreter that
# has all the necessary search paths to execute unwrapped 'master' and
# 'runner' scripts. The setup is a little tricky, but fortunately NixOS is
# about to get a OS module that takes care of those details.
# 'runner' scripts.
dontWrapPythonPrograms = true;
meta = {