Skip to content

fix(nix): fix build with structuredAttrs enabled - #1550

Merged
xarvex merged 1 commit into
TagStudioDev:mainfrom
Ambossmann:structuredAttrs-build-fix
Oct 28, 2026
Merged

xarvex merged 1 commit into
TagStudioDev:mainfrom
Ambossmann:structuredAttrs-build-fix

Conversation

@Ambossmann

Copy link
Copy Markdown
Contributor

Summary

NixOS/nixpkgs#543976 enabled __structuredAttrs by default for buildPythonApplication. This breaks the build, see NixOS/nixpkgs#575801 for an explanation why it breaks and as a reference for the changes I have done.

I didn't want to touch the version pin in flake.lock and instead enabled __structuredAttrs explicitly to retain compatibility with the old version.

I also compared the output before and after with diffoscope and nothing but the store path itself and the dozens of references to it changed.

Tasks Completed

  • Platforms Tested:
    • Windows x86
    • Windows ARM
    • macOS x86
    • macOS ARM
    • Linux x86
    • Linux ARM
  • Tested For:
    • Basic functionality
    • PyInstaller executable

@CyanVoxel CyanVoxel added Type: Installation Installing, building, and/or launching the program Type: Fix A fix for a bug, typo, or other issue labels Oct 28, 2026
@xarvex
xarvex merged commit 54615cf into TagStudioDev:main Oct 28, 2026
1 check passed
@xarvex

xarvex commented Oct 28, 2026

Copy link
Copy Markdown
Member

Checks out for me, thank you for catching this!

@Ambossmann
Ambossmann deleted the structuredAttrs-build-fix branch October 28, 2026 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Fix A fix for a bug, typo, or other issue Type: Installation Installing, building, and/or launching the program

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants