yaml-merge: Fix running the cross-compiled script (#434308)

This commit is contained in:
Colin
2025-08-26 05:17:48 +00:00
committed by GitHub
+6 -1
View File
@@ -3,6 +3,7 @@
stdenv,
fetchFromGitHub,
python3Packages,
pkgsHostTarget,
}:
stdenv.mkDerivation {
@@ -17,7 +18,11 @@ stdenv.mkDerivation {
};
pythonPath = with python3Packages; [ pyyaml ];
nativeBuildInputs = with python3Packages; [ wrapPython ];
nativeBuildInputs = [
# Not `python3Packages.wrapPython` to workaround `python3Packages.wrapPython.__spliced.buildHost` having the wrong `pythonHost`
# See https://github.com/NixOS/nixpkgs/issues/434307
pkgsHostTarget.python3Packages.wrapPython
];
installPhase = ''
install -Dm755 yaml-merge.py $out/bin/yaml-merge