Delete pythonWrapped.nix, use env.LD_LIBRARY_PATH in shell instead

This commit is contained in:
Evie Litherland-Smith 2025-02-11 13:48:21 +00:00
parent 80c510b376
commit d3132f8934

View file

@ -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;
}