Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

miniforge: added default.nix #368381

Closed
wants to merge 17 commits into from
38 changes: 38 additions & 0 deletions pkgs/development/python-modules/miniforge/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
lib,
stdenv,
fetchFromGitHub,
python3,
conda,
}:

stdenv.mkDerivation rec {
qxrein marked this conversation as resolved.
Show resolved Hide resolved
pname = "miniforge";
version = "24.11.0-0";

src = fetchFromGitHub {
owner = "conda-forge";
repo = "miniforge";
rev = version;
hash = "sha256-Mtw0TI5LWv7aC2kCx7EStYXEUa9J3xTwUPpN/z9GvAQ=";
};

buildInputs = [
python3
conda
];

installPhase = ''
mkdir -p $out/bin
cp -r Miniforge3/* $out/
ln -s ${conda}/bin/conda $out/bin/miniforge-conda
'';

meta = with lib; {
qxrein marked this conversation as resolved.
Show resolved Hide resolved
description = "Conda-forge distribution with mamba";
homepage = "https://github.com/conda-forge/miniforge";
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = with maintainers; [ qxrein ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8185,6 +8185,8 @@ self: super: with self; {

minidump = callPackage ../development/python-modules/minidump { };

miniforge = callPackage ../development/python-modules/miniforge { };

miniful = callPackage ../development/python-modules/miniful { };

minikanren = callPackage ../development/python-modules/minikanren { };
Expand Down
Loading