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:
@@ -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"
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user