diff --git a/pkgs/by-name/li/libmamba/package.nix b/pkgs/by-name/li/libmamba/package.nix index 435d15c34a5dca..c9c54fb56e0701 100644 --- a/pkgs/by-name/li/libmamba/package.nix +++ b/pkgs/by-name/li/libmamba/package.nix @@ -19,12 +19,12 @@ }: stdenv.mkDerivation rec { pname = "libmamba"; - version = "1.5.8"; + version = "2.0.2"; src = fetchFromGitHub { owner = "mamba-org"; repo = "mamba"; rev = "libmamba-${version}"; - hash = "sha256-sxZDlMFoMLq2EAzwBVO++xvU1C30JoIoZXEX/sqkXS0="; + hash = "sha256-gAU7ORlALQly152w5URu5Ra+OYOsa3BzT1v5jBo5/Ao="; }; nativeBuildInputs = [ cmake 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..547a4639d2d2bf --- /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.2"; + + src = fetchFromGitHub { + owner = "mamba-org"; + repo = "mamba"; + rev = "micromamba-" + version; + hash = "sha256-gAU7ORlALQly152w5URu5Ra+OYOsa3BzT1v5jBo5/Ao="; + }; + + 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"; + }; +}