Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
931 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
bzip2,
cmake,
cli11,
yaml-cpp,
nlohmann_json,
zstd,
reproc,
spdlog,
tl-expected,
libmamba,
python3,
versionCheckHook,
}:
stdenv.mkDerivation {
pname = "mamba-cpp";
inherit (libmamba) version src;
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)
];
nativeInstallCheckInputs = [ versionCheckHook ];
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";
};
}