blob: c210cf79e07daea7b3fc28e07042a6be160f343c (
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 --no-preserve=all ${sources.postfix-mta-sts-resolver.src}/. $out
cp ${./pyproject.toml} $out/pyproject.toml
cp ${./poetry.lock} $out/poetry.lock
'';
};
};
}
|