at master 52 lines 931 B view raw
1{ 2 lib, 3 stdenv, 4 bzip2, 5 cmake, 6 cli11, 7 yaml-cpp, 8 nlohmann_json, 9 zstd, 10 reproc, 11 spdlog, 12 tl-expected, 13 libmamba, 14 python3, 15 versionCheckHook, 16}: 17stdenv.mkDerivation { 18 pname = "mamba-cpp"; 19 inherit (libmamba) version src; 20 21 nativeBuildInputs = [ cmake ]; 22 23 buildInputs = [ 24 python3 25 reproc 26 spdlog 27 nlohmann_json 28 tl-expected 29 zstd 30 bzip2 31 cli11 32 yaml-cpp 33 libmamba 34 ]; 35 36 cmakeFlags = [ 37 (lib.cmakeBool "BUILD_MAMBA" true) 38 (lib.cmakeBool "BUILD_SHARED" true) 39 (lib.cmakeBool "BUILD_LIBMAMBA" false) 40 ]; 41 42 nativeInstallCheckInputs = [ versionCheckHook ]; 43 44 meta = with lib; { 45 description = "Reimplementation of the conda package manager"; 46 homepage = "https://github.com/mamba-org/mamba"; 47 license = licenses.bsd3; 48 platforms = platforms.linux ++ platforms.darwin; 49 maintainers = with maintainers; [ klchen0112 ]; 50 mainProgram = "mamba"; 51 }; 52}