depot/third_party/nixpkgs/pkgs/development/libraries/octomap/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

30 lines
738 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "octomap";
version = "1.9.8";
src = fetchFromGitHub {
owner = "OctoMap";
repo = pname;
rev = "v${version}";
hash = "sha256-qE5i4dGugm7tR5tgDCpbla/R7hYR/PI8BzrZQ4y6Yz8=";
};
sourceRoot = "source/octomap";
nativeBuildInputs = [ cmake ];
env.NIX_CFLAGS_COMPILE = toString [
# Needed with GCC 12
"-Wno-error=deprecated-declarations"
];
meta = with lib; {
description = "A probabilistic, flexible, and compact 3D mapping library for robotic systems";
homepage = "https://octomap.github.io/";
license = licenses.bsd3;
maintainers = with maintainers; [ lopsided98 ];
platforms = platforms.unix;
};
}