bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
30 lines
742 B
Nix
30 lines
742 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "octomap";
|
|
version = "1.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OctoMap";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-QxQHxxFciR6cvB/b8i0mr1hqGxOXhXmB4zgdsD977Mw=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/octomap";
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
|
# Needed with GCC 12
|
|
"-Wno-error=deprecated-declarations"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "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;
|
|
};
|
|
}
|