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; 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; })
]; ];
}; };
}; };