about summary refs log tree commit diff
path: root/pkgs/tools/misc/clipboard-jh/default.nix
diff options
context:
space:
mode:
authorWeijia Wang2023-04-11 00:47:18 +0300
committerWeijia Wang2023-04-11 00:47:18 +0300
commiteb374d7bae42d185422d7f4bbcd4ed0a5f048e10 (patch)
tree9e4831802639ca9c2ab23e0a433ae2b5f7eb06d7 /pkgs/tools/misc/clipboard-jh/default.nix
parent19502db2c3c2864a6a5b8bca0f41c0be092a00c5 (diff)
clipboard-jh: 0.3.2 -> 0.6.0
Diffstat (limited to 'pkgs/tools/misc/clipboard-jh/default.nix')
-rw-r--r--pkgs/tools/misc/clipboard-jh/default.nix11
1 files changed, 9 insertions, 2 deletions
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 = [