Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18682,6 +18682,12 @@
githubId = 88469;
name = "Jaime Breva";
};
phodina = {
email = "phodina@protonmail.com";
github = "phodina";
githubId = 2997905;
name = "Petr Hodina";
};
photex = {
email = "photex@gmail.com";
github = "photex";
Expand Down
46 changes: 46 additions & 0 deletions pkgs/by-name/ap/apriltag/package.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
})