Use makeWrapper as a native build input

Fixes cross-compilation
This commit is contained in:
Jeremy Kolb 2022-07-08 13:57:42 -04:00 committed by Ben Wolsieffer
parent bb7b9e3723
commit a6cc2182f7
2 changed files with 3 additions and 2 deletions

View file

@ -43,7 +43,7 @@ let
# nix-shell -p does.
paths = propagatedPaths.rosPackages;
buildInputs = optional wrapPrograms makeWrapper;
nativeBuildInputs = optional wrapPrograms makeWrapper;
postBuild = ''
"${buildPackages.perl}/bin/perl" "${./setup-hook-builder.pl}"

View file

@ -7,7 +7,8 @@ let
pname = "colcon";
inherit (package) version;
phases = [ "installPhase" "fixupPhase" ];
buildInputs = [ makeWrapper package] ++ extensions;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ package ] ++ extensions;
installPhase = ''
makeWrapper '${package}/bin/colcon' "$out/bin/colcon" \