first commit
This commit is contained in:
24
pages/Tech/NixOS/PythonPackage in Nix.md
Normal file
24
pages/Tech/NixOS/PythonPackage in Nix.md
Normal file
@@ -0,0 +1,24 @@
|
||||
title:: PythonPackage in Nix
|
||||
date:: 2024-01-22 18:17:05
|
||||
tags:: nixos
|
||||
|
||||
pkgs.python3.override
|
||||
|
||||
https://discourse.nixos.org/t/how-to-use-build-a-python-package-from-a-local-nixpkgs-repo/31919
|
||||
|
||||
https://discourse.nixos.org/t/how-to-add-custom-python-package/536
|
||||
|
||||
|
||||
```nix
|
||||
pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [
|
||||
(
|
||||
python-final: python-prev:
|
||||
{
|
||||
bindep = python-final.callPackage ./packages/python3/bindep { };
|
||||
ansible-builder = python-final.callPackage ./packages/python3/ansible-builder { };
|
||||
}
|
||||
# infinite recursion
|
||||
# (mapModules ./packages/python3 (p: python-final.callPackage (lib.debug.traceVal p) { }))
|
||||
)
|
||||
];
|
||||
```
|
||||
Reference in New Issue
Block a user