uncomment impure section
This commit is contained in:
parent
b49f7d2cd3
commit
0bfb00f563
42
flake.nix
42
flake.nix
@ -95,27 +95,27 @@
|
|||||||
devShells.x86_64-linux = {
|
devShells.x86_64-linux = {
|
||||||
# It is of course perfectly OK to keep using an impure virtualenv workflow and only use uv2nix to build packages.
|
# It is of course perfectly OK to keep using an impure virtualenv workflow and only use uv2nix to build packages.
|
||||||
# This devShell simply adds Python and undoes the dependency leakage done by Nixpkgs Python infrastructure.
|
# This devShell simply adds Python and undoes the dependency leakage done by Nixpkgs Python infrastructure.
|
||||||
# impure = pkgs.mkShell {
|
impure = pkgs.mkShell {
|
||||||
# packages = [
|
packages = [
|
||||||
# python
|
python
|
||||||
# pkgs.uv
|
pkgs.uv
|
||||||
# ];
|
];
|
||||||
# env =
|
env =
|
||||||
# {
|
{
|
||||||
# # Prevent uv from managing Python downloads
|
# Prevent uv from managing Python downloads
|
||||||
# UV_PYTHON_DOWNLOADS = "never";
|
UV_PYTHON_DOWNLOADS = "never";
|
||||||
# # Force uv to use nixpkgs Python interpreter
|
# Force uv to use nixpkgs Python interpreter
|
||||||
# UV_PYTHON = python.interpreter;
|
UV_PYTHON = python.interpreter;
|
||||||
# }
|
}
|
||||||
# // lib.optionalAttrs pkgs.stdenv.isLinux {
|
// lib.optionalAttrs pkgs.stdenv.isLinux {
|
||||||
# # Python libraries often load native shared objects using dlopen(3).
|
# Python libraries often load native shared objects using dlopen(3).
|
||||||
# # Setting LD_LIBRARY_PATH makes the dynamic library loader aware of libraries without using RPATH for lookup.
|
# Setting LD_LIBRARY_PATH makes the dynamic library loader aware of libraries without using RPATH for lookup.
|
||||||
# LD_LIBRARY_PATH = lib.makeLibraryPath pkgs.pythonManylinuxPackages.manylinux1;
|
LD_LIBRARY_PATH = lib.makeLibraryPath pkgs.pythonManylinuxPackages.manylinux1;
|
||||||
# };
|
};
|
||||||
# shellHook = ''
|
shellHook = ''
|
||||||
# unset PYTHONPATH
|
unset PYTHONPATH
|
||||||
# '';
|
'';
|
||||||
# };
|
};
|
||||||
|
|
||||||
# This devShell uses uv2nix to construct a virtual environment purely from Nix, using the same dependency specification as the application.
|
# This devShell uses uv2nix to construct a virtual environment purely from Nix, using the same dependency specification as the application.
|
||||||
# The notable difference is that we also apply another overlay here enabling editable mode ( https://setuptools.pypa.io/en/latest/userguide/development_mode.html ).
|
# The notable difference is that we also apply another overlay here enabling editable mode ( https://setuptools.pypa.io/en/latest/userguide/development_mode.html ).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user