depot/third_party/nixpkgs/pkgs/by-name/li/libmamba/package.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

60 lines
1 KiB
Nix

{
fetchFromGitHub,
lib,
stdenv,
cmake,
fmt,
spdlog,
tl-expected,
nlohmann_json,
yaml-cpp,
simdjson,
reproc,
libsolv,
curl,
libarchive,
zstd,
bzip2,
python3Packages,
}:
stdenv.mkDerivation rec {
pname = "libmamba";
version = "1.5.8";
src = fetchFromGitHub {
owner = "mamba-org";
repo = "mamba";
rev = "${pname}-${version}";
hash = "sha256-sxZDlMFoMLq2EAzwBVO++xvU1C30JoIoZXEX/sqkXS0=";
};
nativeBuildInputs = [
cmake
python3Packages.python
];
buildInputs = [
fmt
spdlog
tl-expected
nlohmann_json
yaml-cpp
simdjson
reproc
libsolv
curl
libarchive
zstd
bzip2
];
cmakeFlags = [
(lib.cmakeBool "BUILD_LIBMAMBA" true)
(lib.cmakeBool "BUILD_SHARED" true)
];
meta = {
description = "The library for the fast Cross-Platform Package Manager";
homepage = "https://github.com/mamba-org/mamba";
license = lib.licenses.bsd3;
platforms = lib.platforms.all;
maintainers = [ lib.maintainers.ericthemagician ];
};
}