summaryrefslogtreecommitdiff
path: root/overlays/postfix-mta-sts-resolver/default.nix
blob: 52ab2d40e0c847ea487a1f34ecb8126f3114dbd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ prev, sources, ... }:
{
  postfix-mta-sts-resolver =
    with prev.poetry2nix;
    mkPoetryApplication {
      python = prev.python311;
      inherit (sources.postfix-mta-sts-resolver) pname version;
      overrides = overrides.withDefaults (self: super: {
        pyyaml = super.pyyaml.override { preferWheel = true; };
      });
      projectDir = cleanPythonSources {
        src = prev.runCommand "sources" {} ''
          mkdir $out
          cp -r ${sources.postfix-mta-sts-resolver.src}/. $out

          cp ${./pyproject.toml} $out/pyproject.toml
          cp ${./poetry.lock} $out/poetry.lock
        '';
      };
    };
}