1
0
Fork 0
mirror of https://github.com/lopsided98/nix-ros-overlay.git synced 2025-07-13 21:50:38 +03:00

Fix aws-common for ROS 2

This commit is contained in:
Ben Wolsieffer 2019-09-10 00:11:13 -04:00
parent a927710b94
commit 9d3b5807a5
2 changed files with 50 additions and 17 deletions

View file

@ -2,6 +2,35 @@
self:
# Distro package set
rosSelf: rosSuper: {
aws-common = (rosSelf.patchVendorUrl rosSuper.aws-common {
url = "https://github.com/aws/aws-sdk-cpp/archive/1.6.53.tar.gz";
originalUrl = "https://github.com/aws/aws-sdk-cpp/archive/\${AWSSDK_VERSION}.tar.gz";
sha256 = "0va0yxbjxa9sy2dlvfi0nm9d12jvr1d4dlp5vqr7i28jf0fjxjw0";
file = "awssdk/CMakeLists.txt";
}).overrideDerivation ({
cmakeFlags ? [],
postPatch ? "", ...
}: {
cmakeFlags = cmakeFlags ++ [ "-DCMAKE_INSTALL_LIBDIR=lib" ];
postPatch = ''
sed 's#\(CMAKE_ARGS .*$\)#\1 -DCMAKE_INSTALL_LIBDIR=lib#' \
-i awssdk/CMakeLists.txt
'' + postPatch;
});
aws-ros2-common = rosSuper.aws-ros2-common.overrideAttrs ({
patches ? [], ...
}: {
patches = patches ++ [
(self.fetchpatch {
url = "https://github.com/aws-robotics/utils-ros2/commit/d782a734e5937134397592f9b5aa757353659362.patch";
sha256 = "01bgkd8wbnkcnhz9p88lhnpk0wdxg4lw8m48bplb7gv15pyahp1d";
stripLen = 1;
})
];
});
nav2-util = rosSuper.nav2-util.overrideAttrs ({
patches ? [], ...
}: {