Skip to content

[nix] Fix python in nix - #2507

Merged
hcallahan-lowrisc merged 1 commit into
lowRISC:masterfrom
SamuelRiedel:nix
Sep 28, 2026
Merged

hcallahan-lowrisc merged 1 commit into
lowRISC:masterfrom
SamuelRiedel:nix

Conversation

@SamuelRiedel

Copy link
Copy Markdown
Contributor

No description provided.

@elliotb-lowrisc elliotb-lowrisc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not sure how, but this seems to restore my ability to build the eda_shell

@hcallahan-lowrisc hcallahan-lowrisc left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @SamuelRiedel, LGTM! One small suggestion to simplify slightly.

Comment thread nix/pythonEnv/default.nix Outdated
Comment on lines +27 to +35
(inputs.uv2nix_hammer_overrides.overrides pkgs)
uvLockedOverlay
(final: prev: {
# PyYAML 6.0 uses setuptools as its build backend without declaring
# it in its package metadata.
pyyaml = prev.pyyaml.overrideAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ final.setuptools ];
});
})

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
(inputs.uv2nix_hammer_overrides.overrides pkgs)
uvLockedOverlay
(final: prev: {
# PyYAML 6.0 uses setuptools as its build backend without declaring
# it in its package metadata.
pyyaml = prev.pyyaml.overrideAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ final.setuptools ];
});
})
uvLockedOverlay
(inputs.uv2nix_hammer_overrides.overrides pkgs)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You can actually just do this (I got this the wrong way around when I originally wrote this code, but the uv2nix_hammer provides all the fixes we need, including the pyyaml one).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks Harry, I implemented your feedback.

Signed-off-by: Samuel Riedel <sriedel@lowrisc.org>
@hcallahan-lowrisc
hcallahan-lowrisc added this pull request to the merge queue Sep 28, 2026
Merged via the queue into lowRISC:master with commit 8150e64 Sep 28, 2026
13 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants