Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.8 kB · 91 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192{ lib, buildPythonPackage, stdenv, fetchFromGitHub, # build dependencies hatchling, hatch-vcs, # runtime dependencies archspec, conda-libmamba-solver, conda-package-handling, distro, frozendict, jsonpatch, packaging, platformdirs, pluggy, pycosat, requests, ruamel-yaml, tqdm, truststore, # runtime options defaultEnvPath ? "~/.conda/envs", # default path to store conda environments defaultPkgPath ? "~/.conda/pkgs", # default path to store download conda packages}:buildPythonPackage rec { __structuredAttrs = true; pname = "conda"; version = "25.5.1"; pyproject = true;
src = fetchFromGitHub { inherit pname version; owner = "conda"; repo = "conda"; tag = version; hash = "sha256-BHy0t+5jz1WdSElCQBgFh5VJC3iIYelS01iQeQByr+0="; };
build-system = [ hatchling hatch-vcs ];
dependencies = [ archspec conda-libmamba-solver conda-package-handling distro frozendict jsonpatch packaging platformdirs pluggy pycosat requests ruamel-yaml tqdm truststore ];
patches = [ ./0001-conda_exe.patch ];
makeWrapperArgs = [ "--set" "CONDA_EXE" "${placeholder "out"}/bin/conda"
"--set-default" "CONDA_ENVS_PATH" defaultEnvPath
"--set-default" "CONDA_PKGS_DIRS" defaultPkgPath ];
pythonImportsCheck = [ "conda" ];
# menuinst is currently not packaged pythonRemoveDeps = lib.optionals (!stdenv.hostPlatform.isWindows) [ "menuinst" ];
meta = { description = "OS-agnostic, system-level binary package manager"; homepage = "https://github.com/conda/conda"; license = lib.licenses.bsd3; maintainers = [ lib.maintainers.ericthemagician ]; };}