From 1b4f0e5a1f2cec72fdb52e32f5d7b7ccc1c11114 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 23 Jun 2026 21:40:11 +0100 Subject: [PATCH] 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. --- pkgs/by-name/qt/qtwebapp/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/qt/qtwebapp/package.nix b/pkgs/by-name/qt/qtwebapp/package.nix index c2f04ff5df82..52b17e7c0403 100644 --- a/pkgs/by-name/qt/qtwebapp/package.nix +++ b/pkgs/by-name/qt/qtwebapp/package.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation (finalAttrs: { __structuredAttrs = true; - sourceRoot = "source/QtWebApp"; + sourceRoot = "${finalAttrs.src.name}/QtWebApp"; postPatch = '' cat >>QtWebApp.pro <