From eb374d7bae42d185422d7f4bbcd4ed0a5f048e10 Mon Sep 17 00:00:00 2001 From: Weijia Wang Date: Tue, 11 Apr 2023 00:47:18 +0300 Subject: clipboard-jh: 0.3.2 -> 0.6.0 --- pkgs/tools/misc/clipboard-jh/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'pkgs/tools/misc/clipboard-jh/default.nix') diff --git a/pkgs/tools/misc/clipboard-jh/default.nix b/pkgs/tools/misc/clipboard-jh/default.nix index a22043ae84fa..177c0b7a67f3 100644 --- a/pkgs/tools/misc/clipboard-jh/default.nix +++ b/pkgs/tools/misc/clipboard-jh/default.nix @@ -7,19 +7,24 @@ , wayland-protocols , wayland , xorg +, darwin }: stdenv.mkDerivation rec { pname = "clipboard-jh"; - version = "0.3.2"; + version = "0.6.0"; src = fetchFromGitHub { owner = "Slackadays"; repo = "clipboard"; rev = version; - sha256 = "sha256-xdogl2WDuQXeLFuBY1u7PSpaoVI9HKScOdxHZ3+whIg="; + hash = "sha256-o3yCWAy7hlFKAFW3tVRG+hL0SRWlNY4hvnhUoDK8GkI="; }; + postPatch = '' + sed -i "/CMAKE_OSX_ARCHITECTURES/d" CMakeLists.txt + ''; + nativeBuildInputs = [ cmake pkg-config @@ -30,6 +35,8 @@ stdenv.mkDerivation rec { wayland-protocols wayland xorg.libX11 + ] ++ lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.AppKit ]; cmakeFlags = [ -- cgit 1.4.1