pyshell: add glib (as well as glibc), option for extraLibs

This commit is contained in:
Evie Litherland-Smith 2025-01-21 10:25:10 +00:00
parent dbb69ee11d
commit 460b5eea1c

View file

@ -2,17 +2,19 @@
pkgs ? import <nixpkgs> { },
python3 ? pkgs.python3Full,
extraPackages ? with pkgs; [ uv ],
extraLibs ? [ ],
}:
let
inherit (pkgs) lib;
ldlibs = lib.makeLibraryPath (
with pkgs;
[
(with pkgs; [
stdenv.cc.cc
glib
glibc
zlib
zstd
]
])
++ extraLibs
);
pythonWrapped = pkgs.symlinkJoin {
name = "python";