From 96abe9b8e8b269deda2b55a70eabfdf802889241 Mon Sep 17 00:00:00 2001 From: klchen0112 Date: Mon, 13 Jan 2025 23:57:32 +0800 Subject: [PATCH] mamba-cpp: init at 2.0.5 --- pkgs/by-name/ma/mamba-cpp/package.nix | 57 +++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 pkgs/by-name/ma/mamba-cpp/package.nix diff --git a/pkgs/by-name/ma/mamba-cpp/package.nix b/pkgs/by-name/ma/mamba-cpp/package.nix new file mode 100644 index 00000000000000..7f9a8027d8d22c --- /dev/null +++ b/pkgs/by-name/ma/mamba-cpp/package.nix @@ -0,0 +1,57 @@ +{ + lib, + stdenv, + fetchFromGitHub, + bzip2, + cmake, + cli11, + yaml-cpp, + nlohmann_json, + zstd, + reproc, + spdlog, + tl-expected, + libmamba, + python3, +}: +stdenv.mkDerivation rec { + pname = "mamba-cpp"; + version = "2.0.5"; + + src = fetchFromGitHub { + owner = "mamba-org"; + repo = "mamba"; + rev = "micromamba-${version}"; + hash = "sha256-o5shAmsplJS2WZ4HhAt1U27KqUheVxZTkjlyxR7EYxI="; + }; + + nativeBuildInputs = [cmake]; + + buildInputs = [ + python3 + reproc + spdlog + nlohmann_json + tl-expected + zstd + bzip2 + cli11 + yaml-cpp + libmamba + ]; + + cmakeFlags = [ + (lib.cmakeBool "BUILD_MAMBA" true) + (lib.cmakeBool "BUILD_SHARED" true) + (lib.cmakeBool "BUILD_LIBMAMBA" false) + ]; + + meta = with lib; { + description = "Reimplementation of the conda package manager"; + homepage = "https://github.com/mamba-org/mamba"; + license = licenses.bsd3; + platforms = platforms.all; + maintainers = with maintainers; [klchen0112]; + mainProgram = "mamba"; + }; +}