75ca762b89
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
20 lines
518 B
Nix
20 lines
518 B
Nix
{ runCommand, lib, makeWrapper, python3
|
|
, archivers ? [ python3.pkgs.mailman-hyperkitty ]
|
|
}:
|
|
|
|
let
|
|
inherit (python3.pkgs) makePythonPath mailman;
|
|
in
|
|
|
|
runCommand "${mailman.name}-wrapped" {
|
|
inherit (mailman) meta;
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
passthru = mailman.passthru // { unwrapped = mailman; };
|
|
} ''
|
|
mkdir -p "$out/bin"
|
|
cd "${mailman}/bin"
|
|
for exe in *; do
|
|
makeWrapper "${mailman}/bin/$exe" "$out/bin/$exe" \
|
|
--set PYTHONPATH ${makePythonPath ([ mailman ] ++ archivers)}
|
|
done
|
|
''
|