Delete pythonWrapped.nix, use env.LD_LIBRARY_PATH in shell instead
This commit is contained in:
parent
80c510b376
commit
d3132f8934
|
@ -1,33 +0,0 @@
|
|||
{
|
||||
pkgs ? import <nixpkgs> { },
|
||||
python3 ? pkgs.python3Full,
|
||||
extraPackages ? [ ],
|
||||
extraLibs ? [ ],
|
||||
}:
|
||||
let
|
||||
inherit (pkgs) lib;
|
||||
ldlibs = lib.makeLibraryPath (
|
||||
(with pkgs; [
|
||||
stdenv.cc.cc
|
||||
glib
|
||||
glibc
|
||||
zlib
|
||||
zstd
|
||||
])
|
||||
++ extraLibs
|
||||
);
|
||||
pythonWrapped = pkgs.symlinkJoin {
|
||||
name = "python";
|
||||
paths = [ python3 ];
|
||||
buildInputs = [ pkgs.makeWrapper ];
|
||||
postBuild = ''
|
||||
for file in $out/bin/*; do wrapProgram "$file" --prefix LD_LIBRARY_PATH : "${ldlibs}"; done
|
||||
'';
|
||||
};
|
||||
in
|
||||
pkgs.mkShellNoCC {
|
||||
packages = [
|
||||
pythonWrapped
|
||||
pkgs.uv
|
||||
] ++ extraPackages;
|
||||
}
|
Loading…
Reference in a new issue