How to replace old nixpkgs with mach-nix.mkPython
See original GitHub issueHi, some python nixpkgs is old. I’m trying to use mach-nix
to install that package from official registries (like pip) instead.
what I tried so far:
(python3.withPackages (ps: with ps; [
(mach-nix.mkPython {
requirements = ''
pynvim
python-lsp-black
python-lsp-server
pylsp-mypy
'';
})
]))
but I don’t get the pylsp binary installed. This code is working:
(python3.withPackages (ps: with ps; [
pynvim
python-lsp-black
python-lsp-server
pylsp-mypy
]))
but of course the version is older.
Issue Analytics
- State:
- Created a year ago
- Comments:14 (8 by maintainers)
Top Results From Across the Web
Python - NixOS Wiki
We saw above how to install Python packages using nixpkgs. Since these are written by hand by nixpkgs maintainers, it isn't uncommon for...
Read more >Mach-nix: Create python environments quick and easy
I'd like to have tensorflow with the usual nix features enabled like SSE/AVX/FMA which I cannot get from pypi. Therefore i must take...
Read more >How to specify (newer) version of Python packages? : r/Nix
In this case it sounds like you simply want to change the input dependency. There's an example in the nixpkgs repo for an...
Read more >Awesome Nix
Arduino; Crystal; Elm; Haskell; Node.js; PHP; PureScript; Python; Ruby; Rust; Scala. NixOS Modules; NixOS Configuration Editors; Overlays; Community ...
Read more >Installing a buildPythonPackage Nix package into a mach-nix ...
I am using a Nix flake to define a devShell with a python environment and certain dependencies available in it. This environment consists...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
not neccessary, just the pkgs.python3 from nixpkgs need to be aware of python packages from mach-nix. or if mach-nix also installing python, I need to configure neovim to point to that python.
"${customPython.pkgs}/bin/python"
->"${import ./your-mach-nix-python-file.nix}/bin/python"
?