···6868 default = [];
6969 type = types.listOf unitNameType;
7070 description = lib.mdDoc ''
7171- Units that require (i.e. depend on and need to go down with)
7272- this unit. The discussion under `wantedBy`
7373- applies here as well: inverse `.requires`
7474- symlinks are established.
7171+ Units that require (i.e. depend on and need to go down with) this unit.
7272+ As discussed in the `wantedBy` option description this also creates
7373+ `.requires` symlinks automatically.
7574 '';
7675 };
7776···7978 default = [];
8079 type = types.listOf unitNameType;
8180 description = lib.mdDoc ''
8282- Units that want (i.e. depend on) this unit. The standard way
8383- to make a unit start by default at boot is to set this option
8484- to `[ "multi-user.target" ]`. That's despite
8585- the fact that the systemd.unit(5) manpage says this option
8686- goes in the `[Install]` section that controls
8787- the behaviour of `systemctl enable`. Since
8888- such a process is stateful and thus contrary to the design of
8989- NixOS, setting this option instead causes the equivalent
9090- inverse `.wants` symlink to be present,
9191- establishing the same desired relationship in a stateless way.
8181+ Units that want (i.e. depend on) this unit. The default method for
8282+ starting a unit by default at boot time is to set this option to
8383+ '["multi-user.target"]' for system services. Likewise for user units
8484+ (`systemd.user.<name>.*`) set it to `["default.target"]` to make a unit
8585+ start by default when the user `<name>` logs on.
8686+8787+ This option creates a `.wants` symlink in the given target that exists
8888+ statelessly without the need for running `systemctl enable`.
8989+ The in systemd.unit(5) manpage described `[Install]` section however is
9090+ not supported because it is a stateful process that does not fit well
9191+ into the NixOS design.
9292 '';
9393 };
9494
+6-1
pkgs/applications/misc/synergy/default.nix
···2626, avahi-compat
27272828 # MacOS / darwin
2929+, darwin
2930, ApplicationServices
3031, Carbon
3132, Cocoa
···4849 patches = [
4950 # Without this OpenSSL from nixpkgs is not detected
5051 ./darwin-non-static-openssl.patch
5252+ ] ++ lib.optionals (stdenv.isDarwin && !(darwin.apple_sdk.frameworks ? UserNotifications)) [
5153 # We cannot include UserNotifications because of a build failure in the Apple SDK.
5254 # The functions used from it are already implicitly included anyways.
5355 ./darwin-no-UserNotifications-includes.patch
···7678 Cocoa
7779 CoreServices
7880 ScreenSaver
8181+ ] ++ lib.optionals (stdenv.isDarwin && darwin.apple_sdk.frameworks ? UserNotifications) [
8282+ darwin.apple_sdk.frameworks.UserNotifications
7983 ] ++ lib.optionals stdenv.isLinux [
8084 util-linux
8185 libselinux
···97101 NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-inconsistent-missing-override";
9810299103 cmakeFlags = lib.optional (!withGUI) "-DSYNERGY_BUILD_LEGACY_GUI=OFF"
100100- ++ lib.optional stdenv.isDarwin "-DCMAKE_OSX_DEPLOYMENT_TARGET=${stdenv.targetPlatform.darwinSdkVersion}";
104104+ # NSFilenamesPboardType is deprecated in 10.14+
105105+ ++ lib.optional stdenv.isDarwin "-DCMAKE_OSX_DEPLOYMENT_TARGET=${if stdenv.isAarch64 then "10.13" else stdenv.targetPlatform.darwinSdkVersion}";
101106102107 doCheck = true;
103108