Skip to content

Commit

Permalink
mamba-cpp: init at 2.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
klchen0112 committed Jan 13, 2025
1 parent f81eabd commit b53b83a
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions pkgs/by-name/ma/mamba-cpp/package.nix
Original file line number Diff line number Diff line change
@@ -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.linux ++ platforms.darwin;
maintainers = with maintainers; [ klchen0112 ];
mainProgram = "mamba";
};
}

0 comments on commit b53b83a

Please sign in to comment.