nixpkgs/pkgs/tools/package-management/micromamba/default.nix

50 lines
1.2 KiB
Nix
Raw Normal View History

2021-07-04 18:28:28 +00:00
{ lib, stdenv, fetchFromGitHub, cmake
, cli11, nlohmann_json, curl, libarchive, libyamlcpp, libsolv, reproc
}:
let
libsolv' = libsolv.overrideAttrs (oldAttrs: {
cmakeFlags = oldAttrs.cmakeFlags ++ [
"-DENABLE_CONDA=true" # Maybe enable this in the original libsolv package? No idea about the implications.
];
});
in
stdenv.mkDerivation rec {
pname = "micromamba";
version = "0.14.1";
src = fetchFromGitHub {
owner = "mamba-org";
repo = "mamba";
rev = version;
sha256 = "0a5kmwk44ll4d8b2akjc0vm6ap9jfxclcw4fclvjxr2in3am9256";
};
nativeBuildInputs = [ cmake ];
buildInputs = [
cli11
nlohmann_json
curl
libarchive
libyamlcpp
libsolv'
reproc
# python3Packages.pybind11 # Would be necessary if someone wants to build with bindings I guess.
];
cmakeFlags = [
"-DBUILD_BINDINGS=OFF" # Fails to build, I don't think it's necessary for now.
"-DBUILD_EXE=ON"
];
CXXFLAGS = "-DMAMBA_USE_STD_FS";
meta = with lib; {
description = "Reimplementation of the conda package manager";
homepage = "https://github.com/mamba-org/mamba";
license = licenses.bsd3;
maintainers = with maintainers; [ mausch ];
};
}