xdg-desktop-portal.tests: fix the eval

Without the chnage the eval fails in `master` as:

    $ nix-instantiate -A xdg-desktop-portal.tests
    ...
    error:
       … while calling the 'derivationStrict' builtin
         at «nix-internal»/derivation-internal.nix:37:12:
           36|
           37|   strict = derivationStrict drvAttrs;
             |            ^
           38|

       … while evaluating derivation 'test-icon-validation'
         whose name attribute is located at pkgs/stdenv/generic/make-derivation.nix:536:13

       … while evaluating attribute 'buildCommand' of derivation 'test-icon-validation'
         at pkgs/build-support/trivial-builders/default.nix:80:17:
           79|         enableParallelBuilding = true;
           80|         inherit buildCommand name;
             |                 ^
           81|         passAsFile = [ "buildCommand" ] ++ (derivationArgs.passAsFile or [ ]);

       error: path 'pkgs/applications/audio/zynaddsubfx/ZynLogo.svg' does not exist
This commit is contained in:
Sergei Trofimovich
2026-03-26 06:28:40 +00:00
parent 14ea55c832
commit f49d58c611
@@ -179,7 +179,7 @@ stdenv.mkDerivation (finalAttrs: {
installedTests = nixosTests.installed-tests.xdg-desktop-portal;
validate-icon = runCommand "test-icon-validation" { } ''
${finalAttrs.finalPackage}/libexec/xdg-desktop-portal-validate-icon --ruleset=desktop --sandbox --path=${../../../applications/audio/zynaddsubfx/ZynLogo.svg} > "$out"
${finalAttrs.finalPackage}/libexec/xdg-desktop-portal-validate-icon --ruleset=desktop --sandbox --path=${../../../by-name/zy/zynaddsubfx/ZynLogo.svg} > "$out"
grep format=svg "$out"
'';
};