yaml-merge: Fix running the cross-compiled script

This package is used in the adguardhome nixos module which is often
cross-compiled, therefore this workaround is justified.
This commit is contained in:
Artturin
2025-08-19 04:07:01 +03:00
parent 30e2e2857b
commit 314d9b4fa7
+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