Fix python override
This commit is contained in:
@@ -22,7 +22,9 @@
|
|||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
packages = {
|
packages = {
|
||||||
vm-test = pkgs.dockerTools.buildLayeredImage {
|
vm-test = let
|
||||||
|
basicPython = (pkgs.python3.withPackages (p: with p; [ pyyaml ]));
|
||||||
|
in pkgs.dockerTools.buildLayeredImage {
|
||||||
name = "vm-test";
|
name = "vm-test";
|
||||||
tag = "latest";
|
tag = "latest";
|
||||||
contents = with pkgs; [
|
contents = with pkgs; [
|
||||||
@@ -33,9 +35,8 @@
|
|||||||
findutils
|
findutils
|
||||||
jq
|
jq
|
||||||
packer
|
packer
|
||||||
(python3.withPackages (p: with p; [ pyyaml ]))
|
|
||||||
shellcheck
|
shellcheck
|
||||||
xonsh
|
(xonsh.overridePythonAttrs { python3 = basicPython; })
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user