fix: correct usage of mkIf in policies test

This commit is contained in:
Mikilio 2024-09-07 12:16:55 +02:00
parent b6ce3e27ef
commit 77606037e4
No known key found for this signature in database
GPG key ID: 0C159FAB320FEB35

View file

@ -20,7 +20,7 @@ in {
package = pkgs.${cfg.wrappedPackageName}.override {
extraPolicies = { DownloadDirectory = "/foo"; };
};
}) // {
} // {
nmt.script = ''
jq=${lib.getExe pkgs.jq}
config_file="${cfg.finalPackage}/lib/${cfg.wrappedPackageName}/distribution/policies.json"
@ -39,5 +39,5 @@ in {
fail "Expected '$config_file' to set 'policies.DownloadDirectory' to \"/foo\""
fi
'';
};
});
}