apriltag: init at v3.4.3 (#392308)

This commit is contained in:
Gaétan Lepage
2025-03-24 10:02:50 +01:00
committed by GitHub
+46
View File
@@ -0,0 +1,46 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
python3Packages,
nix-update-script,
}:
let
opencv4WithGtk = python3Packages.opencv4.override {
enableGtk2 = true; # For GTK2 support
enableGtk3 = true; # For GTK3 support
};
in
stdenv.mkDerivation (finalAttrs: {
pname = "apriltags";
version = "3.4.3";
src = fetchFromGitHub {
owner = "AprilRobotics";
repo = "AprilTags";
tag = "v${finalAttrs.version}";
hash = "sha256-1XbsyyadUvBZSpIc9KPGiTcp+3G7YqHepWoORob01Ss=";
};
nativeBuildInputs = [
cmake
];
buildInputs = [ opencv4WithGtk ];
cmakeFlags = [ (lib.cmakeBool "BUILD_EXAMPLES" true) ];
doCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Visual fiducial system popular for robotics research";
homepage = "https://april.eecs.umich.edu/software/apriltag";
license = lib.licenses.bsd2;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ phodina ];
};
})