mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
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
40 lines
853 B
Nix
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 ];
|
|
};
|
|
})
|