diff --git a/release.nix b/release.nix index 8de538ce..31feebe7 100644 --- a/release.nix +++ b/release.nix @@ -93,6 +93,8 @@ let tests.system-path-fish = makeTest ./tests/system-path-fish.nix; tests.system-path-zsh = makeTest ./tests/system-path-zsh.nix; + tests.launchd-setenv = makeTest ./tests/launchd-setenv.nix; + } // (mapTestOn (packagePlatforms packageSet)); diff --git a/tests/launchd-setenv.nix b/tests/launchd-setenv.nix new file mode 100644 index 00000000..aa0d88a2 --- /dev/null +++ b/tests/launchd-setenv.nix @@ -0,0 +1,10 @@ +{ config, pkgs, ... }: + +{ + launchd.envVariables.FOO = "42"; + + test = '' + echo checking launchd setenv in /activate >&2 + grep "launchctl setenv FOO '42'" ${config.out}/activate + ''; +}