Skip to content

WIP: uv2nix packaging#58

Open
Lillecarl wants to merge 1 commit into
dynamist:mainfrom
Lillecarl:nix
Open

WIP: uv2nix packaging#58
Lillecarl wants to merge 1 commit into
dynamist:mainfrom
Lillecarl:nix

Conversation

@Lillecarl

Copy link
Copy Markdown

A bit more verbose 😄

@Lillecarl

Copy link
Copy Markdown
Author

@holmboe This approach uses uv2nix to parse the uv.lock file and pyproject.nix to parse much of pyproject.toml which results in generated Nix derivations.
"I'm not a Python developer" so I don't really care for uv or other package managers that aren't Nix too much but it enables using uv for dependency resolution (finding packages that matches all version constraints) rather than relying on the versions in nixpkgs.

This approach uses "editables" to set up your shell environment to execute your local project so you don't have to build at all to run and also exposes a Nix closure that you can ship to any runtime environment.

MAO the power of Nix is not being a bog-standard uv/cargo "replacement" but being able to fearlessly depend on native libraries and executables with "guarantees".

Comment thread nix/weav.nix

@Lillecarl Lillecarl Jul 7, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file isn't used, it's just a copypasta from phabfive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant