uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
117
pkgs/applications/misc/synergy/default.nix
Normal file
117
pkgs/applications/misc/synergy/default.nix
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
{ withGUI ? true
|
||||
, stdenv
|
||||
, lib
|
||||
, fetchpatch
|
||||
, fetchFromGitHub
|
||||
, wrapQtAppsHook
|
||||
|
||||
, cmake
|
||||
, openssl
|
||||
, pcre
|
||||
, util-linux
|
||||
, libselinux
|
||||
, libsepol
|
||||
, pkg-config
|
||||
, gdk-pixbuf
|
||||
, libnotify
|
||||
, qttools
|
||||
, xlibsWrapper
|
||||
, libX11
|
||||
, libXi
|
||||
, libXtst
|
||||
, libXrandr
|
||||
, xinput
|
||||
, avahi-compat
|
||||
|
||||
# macOS / darwin
|
||||
, ApplicationServices
|
||||
, Carbon
|
||||
, Cocoa
|
||||
, CoreServices
|
||||
, ScreenSaver
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "synergy";
|
||||
version = "1.14.1.32";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "symless";
|
||||
repo = "synergy-core";
|
||||
rev = "${version}-stable";
|
||||
fetchSubmodules = true;
|
||||
sha256 = "123p75rm22vb3prw1igh0yii2y4bvv7r18iykfvmnr41hh4w7z2p";
|
||||
};
|
||||
|
||||
patches = [ ./macos_build_fix.patch ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/gui/src/SslCertificate.cpp \
|
||||
--replace 'kUnixOpenSslCommand[] = "openssl";' 'kUnixOpenSslCommand[] = "${openssl}/bin/openssl";'
|
||||
'';
|
||||
|
||||
cmakeFlags = lib.optionals (!withGUI) [
|
||||
"-DSYNERGY_BUILD_LEGACY_GUI=OFF"
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
"-DCMAKE_OSX_DEPLOYMENT_TARGET=10.09"
|
||||
];
|
||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-inconsistent-missing-override";
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
pcre
|
||||
] ++ lib.optionals withGUI [
|
||||
qttools
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
ApplicationServices
|
||||
Carbon
|
||||
Cocoa
|
||||
CoreServices
|
||||
ScreenSaver
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
util-linux
|
||||
libselinux
|
||||
libsepol
|
||||
xlibsWrapper
|
||||
libX11
|
||||
libXi
|
||||
libXtst
|
||||
libXrandr
|
||||
xinput
|
||||
avahi-compat
|
||||
gdk-pixbuf
|
||||
libnotify
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp bin/{synergyc,synergys,synergyd,syntool} $out/bin/
|
||||
'' + lib.optionalString withGUI ''
|
||||
cp bin/synergy $out/bin/
|
||||
wrapQtApp $out/bin/synergy
|
||||
'' + lib.optionalString stdenv.isLinux ''
|
||||
mkdir -p $out/share/icons/hicolor/scalable/apps
|
||||
cp ../res/synergy.svg $out/share/icons/hicolor/scalable/apps/
|
||||
mkdir -p $out/share/applications
|
||||
substitute ../res/synergy.desktop $out/share/applications/synergy.desktop --replace /usr/bin $out/bin
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
mkdir -p $out/Applications/
|
||||
mv bundle/Synergy.app $out/Applications/
|
||||
ln -s $out/bin $out/Applications/Synergy.app/Contents/MacOS
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
checkPhase = "bin/unittests";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Share one mouse and keyboard between multiple computers";
|
||||
homepage = "https://symless.com/synergy";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ talyz ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
29
pkgs/applications/misc/synergy/macos_build_fix.patch
Normal file
29
pkgs/applications/misc/synergy/macos_build_fix.patch
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 50e712fa..d39c2ce4 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -326,9 +326,6 @@ endif()
|
||||
# Apple has to use static libraries because
|
||||
# "Use of the Apple-provided OpenSSL libraries by apps is strongly discouraged."
|
||||
# https://developer.apple.com/library/archive/documentation/Security/Conceptual/cryptoservices/SecureNetworkCommunicationAPIs/SecureNetworkCommunicationAPIs.html
|
||||
-if(APPLE)
|
||||
- set(OPENSSL_USE_STATIC_LIBS TRUE)
|
||||
-endif()
|
||||
find_package(OpenSSL REQUIRED)
|
||||
|
||||
#
|
||||
diff --git a/src/gui/src/OSXHelpers.mm b/src/gui/src/OSXHelpers.mm
|
||||
index 0c98afc1..38c190a6 100644
|
||||
--- a/src/gui/src/OSXHelpers.mm
|
||||
+++ b/src/gui/src/OSXHelpers.mm
|
||||
@@ -20,10 +20,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <CoreData/CoreData.h>
|
||||
#import <Cocoa/Cocoa.h>
|
||||
-#import <UserNotifications/UNNotification.h>
|
||||
-#import <UserNotifications/UNUserNotificationCenter.h>
|
||||
-#import <UserNotifications/UNNotificationContent.h>
|
||||
-#import <UserNotifications/UNNotificationTrigger.h>
|
||||
|
||||
#import <QtGlobal>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue