summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorMauricio Scheffer <mauricioscheffer@gmail.com>2021-07-04 19:28:28 +0100
committerMauricio Scheffer <mauricioscheffer@gmail.com>2021-07-08 13:27:09 +0100
commit7eaf29cb05c284cf7c0a30c70a4381e81420d144 (patch)
tree0ee94f87c271fd01c6aab42411f02a84519c0a76 /pkgs/tools
parent5e8bfbb4c7fd0534d9aa4b1b54da278f96ee3512 (diff)
downloadnixpkgs-7eaf29cb05c284cf7c0a30c70a4381e81420d144.tar
nixpkgs-7eaf29cb05c284cf7c0a30c70a4381e81420d144.tar.gz
nixpkgs-7eaf29cb05c284cf7c0a30c70a4381e81420d144.tar.bz2
nixpkgs-7eaf29cb05c284cf7c0a30c70a4381e81420d144.tar.lz
nixpkgs-7eaf29cb05c284cf7c0a30c70a4381e81420d144.tar.xz
nixpkgs-7eaf29cb05c284cf7c0a30c70a4381e81420d144.tar.zst
nixpkgs-7eaf29cb05c284cf7c0a30c70a4381e81420d144.zip
micromamba: init at 0.14.1
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/package-management/micromamba/default.nix49
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/tools/package-management/micromamba/default.nix b/pkgs/tools/package-management/micromamba/default.nix
new file mode 100644
index 00000000000..a7e563ce67e
--- /dev/null
+++ b/pkgs/tools/package-management/micromamba/default.nix
@@ -0,0 +1,49 @@
+{ 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 ];
+  };
+}