Skip to content

Commit

Permalink
qt6.qtdeclarative: replace the qmlc version tag with the store path
Browse files Browse the repository at this point in the history
  • Loading branch information
outfoxxed committed Sep 16, 2024
1 parent 4952687 commit 45f1508
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkgs/development/libraries/qt-6/modules/qtdeclarative.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ qtModule {
../patches/0002-qtdeclarative-also-use-versioned-qml-paths.patch
];

# Only qml files with a matching tag will be loaded by qtdeclarative,
# so it is set to the unique store path of the build.
# The maximum length of the tag is 48 bytes, so the path is trimmed to
# only /nix/store/<hash>.
preConfigure = ''
echo ''${out:0:43} > .tag
'';

cmakeFlags = [
"-DQt6ShaderToolsTools_DIR=${pkgsBuildBuild.qt6.qtshadertools}/lib/cmake/Qt6ShaderTools"
# for some reason doesn't get found automatically on Darwin
Expand Down

0 comments on commit 45f1508

Please sign in to comment.