Cleanup catkin setup hook.

This commit is contained in:
Ben Wolsieffer 2020-03-04 17:18:10 -05:00
parent db3ae84456
commit cdcb85b14e
3 changed files with 3 additions and 10 deletions

View file

@ -18,8 +18,6 @@ else stdenv.mkDerivation) (args // {
passthru = passthru // {
rosPackage = true;
};
} // (if buildType == "ament_python" then {
} // lib.optionalAttrs (buildType == "ament_python") {
dontUseCmakeConfigure = true;
} else {
nativeBuildInputs = [ pythonPackages.wrapPython ] ++ nativeBuildInputs;
}))
})

View file

@ -1,10 +1,5 @@
{ makeSetupHook }:
distro:
makeSetupHook {
name = "catkin-setup-hook";
substitutions = {
inherit distro;
};
} ./setup-hook.sh

View file

@ -38,7 +38,7 @@ let
prePhases ? [],
postPatch ? "", ...
}: let
setupHook = self.callPackage ./catkin-setup-hook { } distro;
setupHook = self.callPackage ./catkin-setup-hook { };
in {
propagatedBuildInputs = [ self.cmake setupHook ] ++ propagatedBuildInputs;