diff --git a/pkgs/by-name/po/poselib/package.nix b/pkgs/by-name/po/poselib/package.nix new file mode 100644 index 000000000000..b4478e30e8de --- /dev/null +++ b/pkgs/by-name/po/poselib/package.nix @@ -0,0 +1,39 @@ +{ + lib, + stdenv, + fetchFromGitHub, + gitUpdater, + cmake, + eigen, + pkg-config, +}: + +stdenv.mkDerivation (final: { + pname = "poselib"; + version = "2.0.5"; + + src = fetchFromGitHub { + owner = "PoseLib"; + repo = "PoseLib"; + rev = "v${final.version}"; + hash = "sha256-fARRKT2UoPuuk9FOOsBdrACwGiGXWg/mLV4R0QIjeak="; + }; + + buildInputs = [ eigen ]; + + nativeBuildInputs = [ + cmake + pkg-config + ]; + + passthru.updateScript = gitUpdater { rev-prefix = "v"; }; + + meta = with lib; { + description = "A collection of minimal solvers for camera pose estimation"; + homepage = "https://github.com/PoseLib/PoseLib"; + changelog = "https://github.com/PoseLib/PoseLib/releases/tag/v${final.version}"; + license = licenses.bsd3; + platforms = platforms.unix; + maintainers = with maintainers; [ usertam ]; + }; +})