-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
base: master
Are you sure you want to change the base?
miniforge: added default.nix #368381
Conversation
can someone please suggest the fixes for these formatting issues |
nix-shell --packages nixfmt-rfc-style
nixfmt pkgs/development/python-modules/miniforge/default.nix |
Thank you for your suggestion, but I have already tried this, and it’s still not working. |
Co-authored-by: Yohann Boniface <edhyjox@gmail.com>
Co-authored-by: Yohann Boniface <edhyjox@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You will need to add the package within pkgs/top-level/python-package.nix
in order for your derivation to be accessible through nix-build -A python3Packages.miniforge
@Sigmanificient help |
After looking a little closer at the miniforge repository, it doesn't seem like a traditional python package you would install through pip (or a similar tool), which means you will have to move it to However, the project seems to only contain some installations scripts. The first one uses seems to invoke In the current state, this derivation does not build properly. The symlink is not right and you are copying the repository source into the output: [$] nix-build -A miniforge # after moving it to pkgs/by-name
/nix/store/bdcm48cc4mh6jhxns6sgca3b3qwvjgq1-miniforge-24.11.0-0
[$] tree result
result
├── bin
│ └── miniforge-conda -> ../miniforge3/bin/conda
├── build_miniforge_osx.sh
├── build_miniforge.sh
├── build_miniforge_win.sh
├── docs
│ ├── releases.py
│ ├── requirements.txt
│ └── templates
│ └── all-releases.html
├── LICENSE
├── Miniforge3
│ ├── construct.yaml
│ ├── mambaforge_deprecation.bat
│ ├── mambaforge_deprecation.sh
│ ├── pypy_deprecation.bat
│ └── pypy_deprecation.sh
├── README.md
└── scripts
├── build.sh
└── test.sh |
that makes sense thanks |
Unfortunately, I am uncertain on how to port the distribution to nixpkgs. I invite you to seek for help within the official discourse, on the matrix channel or one of the community discord server. I hope you will be able to find something! |
63d2c3f
python-modules/miniforge: init at 24.11.0-0
Add miniforge package, a conda-forge distribution that includes mamba 1.5.11.
Features:
Based on the latest 24.11.0-0 release
Supports x86_64, aarch64 platforms
Includes Python 3 and conda package manager
Testing:
Builds successfully on NixOS
Package installs and conda command works
Closes #368355
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.