Files
nixpkgs/pkgs/by-name/po/poselib/package.nix
quantenzitrone 44560ee9f7 various: make all uses of fixed point builders use finalAttrs as argument
some of these were just typos like `finalAttr`, `finalAtts` or `finaAttrs`
some of these were using `self`, `final`, `finalPackage`, `attrs` or `_`
some of these were wrong by using `oldAttrs` or `finalPackages`

other than the nixos manual this shouldn't create any rebuilds
2026-02-06 23:22:29 +01:00

40 lines
853 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
gitUpdater,
cmake,
eigen,
pkg-config,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "poselib";
version = "2.0.5";
src = fetchFromGitHub {
owner = "PoseLib";
repo = "PoseLib";
rev = "v${finalAttrs.version}";
hash = "sha256-fARRKT2UoPuuk9FOOsBdrACwGiGXWg/mLV4R0QIjeak=";
};
buildInputs = [ eigen ];
nativeBuildInputs = [
cmake
pkg-config
];
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
meta = {
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${finalAttrs.version}";
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ usertam ];
};
})