nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 gitUpdater,
6 cmake,
7 eigen,
8 pkg-config,
9}:
10
11stdenv.mkDerivation (final: {
12 pname = "poselib";
13 version = "2.0.5";
14
15 src = fetchFromGitHub {
16 owner = "PoseLib";
17 repo = "PoseLib";
18 rev = "v${final.version}";
19 hash = "sha256-fARRKT2UoPuuk9FOOsBdrACwGiGXWg/mLV4R0QIjeak=";
20 };
21
22 buildInputs = [ eigen ];
23
24 nativeBuildInputs = [
25 cmake
26 pkg-config
27 ];
28
29 passthru.updateScript = gitUpdater { rev-prefix = "v"; };
30
31 meta = {
32 description = "A collection of minimal solvers for camera pose estimation";
33 homepage = "https://github.com/PoseLib/PoseLib";
34 changelog = "https://github.com/PoseLib/PoseLib/releases/tag/v${final.version}";
35 license = lib.licenses.bsd3;
36 platforms = lib.platforms.unix;
37 maintainers = with lib.maintainers; [ usertam ];
38 };
39})