tests/thunderbird: dont use realPkgs
Not relevant for testing.
This commit is contained in:
parent
fc09cb7aaa
commit
412eb166eb
3 changed files with 43 additions and 29 deletions
|
|
@ -1,6 +1,12 @@
|
|||
{ lib, realPkgs, ... }:
|
||||
{
|
||||
imports = [ ../../accounts/email-test-accounts.nix ];
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
../../accounts/email-test-accounts.nix
|
||||
];
|
||||
|
||||
accounts.email.accounts = {
|
||||
"hm@example.com" = {
|
||||
|
|
@ -54,14 +60,13 @@
|
|||
|
||||
programs.thunderbird = {
|
||||
enable = true;
|
||||
package = config.lib.test.mkStubPackage {
|
||||
name = "thunderbird";
|
||||
};
|
||||
|
||||
# Disable warning so that platforms' behavior is the same
|
||||
darwinSetupWarning = false;
|
||||
|
||||
# Darwin doesn't support wrapped Thunderbird, using unwrapped instead;
|
||||
# using -latest- because ESR is currently broken on Darwin
|
||||
package = realPkgs.thunderbird-latest-unwrapped;
|
||||
|
||||
profiles = {
|
||||
first = {
|
||||
isDefault = true;
|
||||
|
|
@ -105,7 +110,7 @@
|
|||
|
||||
nmt.script =
|
||||
let
|
||||
isDarwin = realPkgs.stdenv.hostPlatform.isDarwin;
|
||||
isDarwin = pkgs.stdenv.hostPlatform.isDarwin;
|
||||
configDir = if isDarwin then "Library/Thunderbird" else ".thunderbird";
|
||||
profilesDir = if isDarwin then "${configDir}/Profiles" else "${configDir}";
|
||||
platform = if isDarwin then "darwin" else "linux";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue