From da353f4aa04a1ac8f9ef010bde0d63425a885045 Mon Sep 17 00:00:00 2001 From: Locochoco Date: Sun, 10 Mar 2024 11:08:11 -0300 Subject: [PATCH] sophus: init at 1.22.10 --- pkgs/by-name/so/sophus/package.nix | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/so/sophus/package.nix diff --git a/pkgs/by-name/so/sophus/package.nix b/pkgs/by-name/so/sophus/package.nix new file mode 100644 index 000000000000..e748e864d0ce --- /dev/null +++ b/pkgs/by-name/so/sophus/package.nix @@ -0,0 +1,41 @@ +{ lib +, stdenv +, eigen +, fmt +, fetchFromGitHub +, cmake +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "sophus"; + version = "1.22.10"; + + src = fetchFromGitHub { + owner = "strasdat"; + repo = "Sophus"; + rev = finalAttrs.version; + hash = "sha256-TNuUoL9r1s+kGE4tCOGFGTDv1sLaHJDUKa6c9x41Z7w="; + }; + + nativeBuildInputs = [ + cmake + ]; + + buildInputs = [ + eigen + fmt + ]; + + cmakeFlags = [ + (lib.cmakeBool "BUILD_SOPHUS_TESTS" false) + (lib.cmakeBool "BUILD_SOPHUS_EXAMPLES" false) + ]; + + meta = { + description = "C++ implementation of Lie Groups using Eigen"; + homepage = "https://github.com/strasdat/Sophus"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ locochoco acowley ]; + platforms = lib.platforms.all; + }; +})