toast.ooo
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
ruffsl@programming.dev to Nix / NixOS@programming.devEnglish · 12 days ago

NixOS 61: Using non-Nix Python Packages with Binaries on NixOS - YouTube

youtube.com

external-link
message-square
1
link
fedilink
10
external-link

NixOS 61: Using non-Nix Python Packages with Binaries on NixOS - YouTube

youtube.com

ruffsl@programming.dev to Nix / NixOS@programming.devEnglish · 12 days ago
message-square
1
link
fedilink
NixOS 61: Using non-Nix Python Packages with Binaries on NixOS
youtube.com
external-link
Make life a little simpler by being able to more easily use native Python build and install tools under NixOS. We use NumPy as an example in concert with ni...

Accompanying transcript/write-up:

  • https://github.com/mcdonc/.nixconfig/blob/master/videos/pydev/script.rst
alert-triangle
You must log in or register to comment.
  • ruffsl@programming.devOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    12 days ago

    Nix-ld is only used by unpatched executables that use the link loader at /lib or /lib64. If you use for example python from nixpkgs than it will not pick up NIX_LD_LIBRARY_PATH and NIX_LD since these types of binaries are configured to use a glibc from the nix store.

    • https://github.com/nix-community/nix-ld/blob/bc1a7a1b88589bfd26846fc5341fe44fc73b3fbd/README.md?plain=1#L164

    Ah, I guess that’s why I’ve seen folks recommend just having uv install the python interpreter as well, so everything python uses the same link loder from nix-ld.

Nix / NixOS@programming.dev

nix@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !nix@programming.dev

Main links

  • website
  • wiki
  • matrix

Videos

  • Linux Experiment about NixOS
  • Chris Titus Tech
  • Mental Outlaw
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 18 users / day
  • 39 users / week
  • 134 users / month
  • 470 users / 6 months
  • 1 local subscriber
  • 2.38K subscribers
  • 260 Posts
  • 1.07K Comments
  • Modlog
  • mods:
  • Erlingur@programming.dev
  • ballmerpeaking@programming.dev
  • WhiteBlackGoose@programming.dev
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org