qtwebapp: fix sourceRoot for fetchedSourceNameDefault = "full"

Without the chnage the build fails on `master` as:

    $ nix build -f. qtwebapp --arg config ' { fetchedSourceNameDefault = "full"; }' -j1
    ...
       > unpacking source archive /nix/store/yi6b975bbh7zd7wj15dan247mkbhlg5x-QtWebApp-1.9.1-github-source
       > source root is source/QtWebApp
       > chmod: cannot access 'source/QtWebApp': No such file or directory

This happens because the `sourceRoot` hardcodes unpack source dir as
`source`. Let's derive it from `src` instead.
This commit is contained in:
Sergei Trofimovich
2026-06-23 21:40:11 +01:00
parent 6513a1ef4c
commit 1b4f0e5a1f
+1 -1
View File
@@ -18,7 +18,7 @@ stdenv.mkDerivation (finalAttrs: {
__structuredAttrs = true;
sourceRoot = "source/QtWebApp";
sourceRoot = "${finalAttrs.src.name}/QtWebApp";
postPatch = ''
cat >>QtWebApp.pro <<EOF