diff options
author | Alain Lehmann <alain.lehmann@gmail.com> | 2018-01-15 20:23:14 +0100 |
---|---|---|
committer | Alain Lehmann <alain.lehmann@gmail.com> | 2018-01-15 22:08:03 +0100 |
commit | 9e2e2196087f5afd7b0aea5b922b01def105a3d3 (patch) | |
tree | 2dfe42b2d4ecc0a2ce9beef1bab2244408968e6d /pkgs/top-level | |
parent | 9ea67c101cd721fa02309cb3788f098033ad85a9 (diff) |
perlPackages.Clipboard: Fix darwin build
Darwin requires dependency on MacPasteboard The test runs successfully when executed interactively from a nix-shell. Disable doCheck as paste pasteboard is not accessible in (non-interactive) nix-build.
Diffstat (limited to 'pkgs/top-level')
-rw-r--r-- | pkgs/top-level/perl-packages.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 9145eb56a5f07..bd77ac1d55b25 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -2184,6 +2184,12 @@ let self = _self // overrides; _self = with self; { description = "Clipboard - Copy and Paste with any OS"; license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ]; }; + propagatedBuildInputs = stdenv.lib.optional stdenv.isDarwin MacPasteboard; + # Disable test on darwin because MacPasteboard fails when not logged in interactively. + # Mac OS error -4960 (coreFoundationUnknownErr): The unknown error at lib/Clipboard/MacPasteboard.pm line 3. + # Mac-Pasteboard-0.009.readme: 'NOTE that Mac OS X appears to restrict pasteboard access to processes that are logged in interactively. + # Ssh sessions and cron jobs can not create the requisite pasteboard handles, giving coreFoundationUnknownErr (-4960)' + doCheck = !stdenv.isDarwin; }; |