Fix python override

This commit is contained in:
Greg Hellings
2024-04-16 13:01:12 -05:00
parent b46654c723
commit d86e4e4a79
+4 -3
View File
@@ -22,7 +22,9 @@
config.allowUnfree = true;
};
packages = {
vm-test = pkgs.dockerTools.buildLayeredImage {
vm-test = let
basicPython = (pkgs.python3.withPackages (p: with p; [ pyyaml ]));
in pkgs.dockerTools.buildLayeredImage {
name = "vm-test";
tag = "latest";
contents = with pkgs; [
@@ -33,9 +35,8 @@
findutils
jq
packer
(python3.withPackages (p: with p; [ pyyaml ]))
shellcheck
xonsh
(xonsh.overridePythonAttrs { python3 = basicPython; })
];
};
};