Merge remote-tracking branch 'origin/master' into staging-next
Conflicts: pkgs/tools/networking/xh/default.nix
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
diff --git i/goldendict.pro w/goldendict.pro
|
||||
index 328dc20..5202a07 100644
|
||||
index 4a4a3094..082b728f 100644
|
||||
--- i/goldendict.pro
|
||||
+++ w/goldendict.pro
|
||||
@@ -210,21 +210,18 @@ mac {
|
||||
@@ -212,22 +212,19 @@ mac {
|
||||
-llzo2
|
||||
!CONFIG( no_ffmpeg_player ) {
|
||||
LIBS += -lao \
|
||||
- -lswresample-gd \
|
||||
- -lavutil-gd \
|
||||
- -lavformat-gd \
|
||||
- -lavcodec-gd
|
||||
+ -lswresample \
|
||||
+ -lavutil \
|
||||
+ -lavformat \
|
||||
+ -lavcodec
|
||||
@@ -29,7 +31,7 @@ index 328dc20..5202a07 100644
|
||||
cp -R locale/*.qm GoldenDict.app/Contents/MacOS/locale/ & \
|
||||
mkdir -p GoldenDict.app/Contents/MacOS/help & \
|
||||
cp -R $${PWD}/help/*.qch GoldenDict.app/Contents/MacOS/help/
|
||||
@@ -232,15 +229,6 @@ mac {
|
||||
@@ -235,15 +232,6 @@ mac {
|
||||
CONFIG += zim_support
|
||||
!CONFIG( no_chinese_conversion_support ) {
|
||||
CONFIG += chinese_conversion_support
|
||||
@@ -46,17 +48,15 @@ index 328dc20..5202a07 100644
|
||||
}
|
||||
DEFINES += PROGRAM_VERSION=\\\"$$VERSION\\\"
|
||||
diff --git i/tiff.cc w/tiff.cc
|
||||
index e3cb8bf..9ff880f 100644
|
||||
index e3cb8bf5..95dd812f 100644
|
||||
--- i/tiff.cc
|
||||
+++ w/tiff.cc
|
||||
@@ -6,8 +6,8 @@
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include "tiff.hh"
|
||||
|
||||
#if defined (Q_OS_MAC) || defined (Q_OS_WIN)
|
||||
-#include "tiff/tiff.h"
|
||||
-#include "tiff/tiffio.h"
|
||||
+#include "tiff.h"
|
||||
+#include "tiffio.h"
|
||||
-#if defined (Q_OS_MAC) || defined (Q_OS_WIN)
|
||||
+#if defined (Q_OS_WIN)
|
||||
#include "tiff/tiff.h"
|
||||
#include "tiff/tiffio.h"
|
||||
#else
|
||||
#include "tiff.h"
|
||||
#include "tiffio.h"
|
||||
|
||||
@@ -4,19 +4,19 @@
|
||||
, withCC ? true, opencc
|
||||
, withEpwing ? true, libeb
|
||||
, withExtraTiff ? true, libtiff
|
||||
, withFFmpeg ? true, libao, ffmpeg_3
|
||||
, withFFmpeg ? true, libao, ffmpeg
|
||||
, withMultimedia ? true
|
||||
, withZim ? true, zstd }:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "goldendict";
|
||||
version = "2020-12-09";
|
||||
version = "2021-03-09";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "goldendict";
|
||||
repo = pname;
|
||||
rev = "261e45a5d79f9df2fbc050292410bed0f4ef3132";
|
||||
sha256 = "01pny06d4cmwf998hpqd7xx7mccbbasb8js1bv3rkdi1ljg01f7n";
|
||||
rev = "b2e673961d28ca5eb920a909091252d3321f09d6";
|
||||
sha256 = "sha256-+AAamnICq0/B54ggFpgF/Uupm1a4YiEYgHXrhIK4M0E=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@@ -39,7 +39,7 @@ mkDerivation rec {
|
||||
++ lib.optional withCC opencc
|
||||
++ lib.optional withEpwing libeb
|
||||
++ lib.optional withExtraTiff libtiff
|
||||
++ lib.optionals withFFmpeg [ libao ffmpeg_3 ]
|
||||
++ lib.optionals withFFmpeg [ libao ffmpeg ]
|
||||
++ lib.optional withZim zstd;
|
||||
|
||||
qmakeFlags = with lib; [
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
{ lib, stdenv, cmake, fetchFromGitHub, opencv4 }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "opentrack-aruco";
|
||||
version = "unstable-20190303";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "opentrack";
|
||||
repo = "aruco";
|
||||
rev = "12dc60efd61149227bd05c805208d9bcce308f6d";
|
||||
sha256 = "0gkrixgfbpg8pls4qqilphbz4935mg5z4p18a0vv6kclmfccw9ad";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
buildInputs = [ opencv4 ];
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-Wall -Wextra -Wpedantic -ffast-math -march=native -O3";
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p $out/include/aruco
|
||||
'';
|
||||
|
||||
# copy headers required by main package
|
||||
postInstall = ''
|
||||
cp $src/src/*.h $out/include/aruco
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/opentrack/aruco";
|
||||
description = "C++ library for detection of AR markers based on OpenCV";
|
||||
license = licenses.isc;
|
||||
maintainers = with maintainers; [ zaninime ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
{ mkDerivation, lib, callPackage, fetchzip, fetchFromGitHub, cmake, pkg-config
|
||||
, ninja, copyDesktopItems, qtbase, qttools, opencv4, procps, eigen, libXdmcp
|
||||
, libevdev, makeDesktopItem, fetchurl }:
|
||||
|
||||
let
|
||||
version = "2.3.13";
|
||||
|
||||
aruco = callPackage ./aruco.nix { };
|
||||
|
||||
# license.txt inside the zip file is MIT
|
||||
xplaneSdk = fetchzip {
|
||||
url = "https://developer.x-plane.com/wp-content/plugins/code-sample-generation/sample_templates/XPSDK303.zip";
|
||||
sha256 = "11wqjsr996c5qhiv2djsd55gc373a9qcq30dvc6rhzm0fys42zba";
|
||||
};
|
||||
|
||||
in mkDerivation {
|
||||
pname = "opentrack";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "opentrack";
|
||||
repo = "opentrack";
|
||||
rev = "opentrack-${version}";
|
||||
sha256 = "1s986lmm5l1pwbwvd1pfiq84n32s1q1dav7a0cbga4d1vcf0v1ay";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ninja copyDesktopItems ];
|
||||
buildInputs = [ qtbase qttools opencv4 procps eigen libXdmcp libevdev aruco ];
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-Wall -Wextra -Wpedantic -ffast-math -march=native -O3";
|
||||
|
||||
cmakeFlags = [
|
||||
"-DCMAKE_BUILD_TYPE=RELEASE"
|
||||
"-DSDK_ARUCO_LIBPATH=${aruco}/lib/libaruco.a"
|
||||
"-DSDK_XPLANE=${xplaneSdk}"
|
||||
];
|
||||
|
||||
desktopItems = [
|
||||
(makeDesktopItem rec {
|
||||
name = "opentrack";
|
||||
exec = "opentrack";
|
||||
icon = fetchurl {
|
||||
url = "https://github.com/opentrack/opentrack/raw/opentrack-${version}/gui/images/opentrack.png";
|
||||
sha256 = "0d114zk78f7nnrk89mz4gqn7yk3k71riikdn29w6sx99h57f6kgn";
|
||||
};
|
||||
desktopName = name;
|
||||
genericName = "Head tracking software";
|
||||
categories = "Utility;";
|
||||
})
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/opentrack/opentrack";
|
||||
description = "Head tracking software for MS Windows, Linux, and Apple OSX";
|
||||
license = licenses.isc;
|
||||
maintainers = with maintainers; [ zaninime ];
|
||||
};
|
||||
}
|
||||
@@ -5,41 +5,21 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "synergy";
|
||||
version = "1.11.1";
|
||||
version = "1.13.1.41";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "symless";
|
||||
repo = "synergy-core";
|
||||
rev = "${version}-stable";
|
||||
sha256 = "1jk60xw4h6s5crha89wk4y8rrf1f3bixgh5mzh3cq3xyrkba41gh";
|
||||
fetchSubmodules = true;
|
||||
sha256 = "1phg0szc9g018zxs5wbys4drzq1cdhyzajfg45l6a3fmi6qdi1kw";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./build-tests.patch
|
||||
(fetchpatch {
|
||||
name = "CVE-2020-15117.patch";
|
||||
url = "https://github.com/symless/synergy-core/commit/"
|
||||
+ "0a97c2be0da2d0df25cb86dfd642429e7a8bea39.patch";
|
||||
sha256 = "03q8m5n50fms7fjfjgmqrgy9mrxwi9kkz3f3vlrs2x5h21dl6bmj";
|
||||
})
|
||||
] ++ lib.optional stdenv.isDarwin ./macos_build_fix.patch;
|
||||
|
||||
# Since the included gtest and gmock don't support clang and the
|
||||
# segfault when built with gcc9, we replace it with 1.10.0 for
|
||||
# synergy-1.11.0. This should become unnecessary when upstream
|
||||
# updates these dependencies.
|
||||
googletest = fetchFromGitHub {
|
||||
owner = "google";
|
||||
repo = "googletest";
|
||||
rev = "release-1.10.0";
|
||||
sha256 = "1zbmab9295scgg4z2vclgfgjchfjailjnvzc6f5x9jvlsdi3dpwz";
|
||||
};
|
||||
patches = lib.optional stdenv.isDarwin ./macos_build_fix.patch;
|
||||
|
||||
postPatch = ''
|
||||
rm -r ext/*
|
||||
cp -r ${googletest}/googlemock ext/gmock/
|
||||
cp -r ${googletest}/googletest ext/gtest/
|
||||
chmod -R +w ext/
|
||||
substituteInPlace src/gui/src/SslCertificate.cpp \
|
||||
--replace 'kUnixOpenSslCommand[] = "openssl";' 'kUnixOpenSslCommand[] = "${openssl}/bin/openssl";'
|
||||
'';
|
||||
|
||||
cmakeFlags = lib.optional (!withGUI) "-DSYNERGY_BUILD_LEGACY_GUI=OFF";
|
||||
@@ -63,7 +43,7 @@ stdenv.mkDerivation rec {
|
||||
cp bin/{synergyc,synergys,synergyd,syntool} $out/bin/
|
||||
'' + lib.optionalString withGUI ''
|
||||
cp bin/synergy $out/bin/
|
||||
wrapQtApp $out/bin/synergy --prefix PATH : ${lib.makeBinPath [ openssl ]}
|
||||
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/
|
||||
@@ -80,9 +60,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
meta = with lib; {
|
||||
description = "Share one mouse and keyboard between multiple computers";
|
||||
homepage = "http://synergy-project.org/";
|
||||
homepage = "https://synergy-project.org/";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ ];
|
||||
maintainers = with maintainers; [ talyz ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,17 +1,8 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index a2297311..25a51f56 100644
|
||||
index c1e78d1d..13639ba1 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -138,7 +138,7 @@ if (UNIX)
|
||||
|
||||
|
||||
if (APPLE)
|
||||
- set (CMAKE_CXX_FLAGS "--sysroot ${CMAKE_OSX_SYSROOT} ${CMAKE_CXX_FLAGS} -DGTEST_USE_OWN_TR1_TUPLE=1")
|
||||
+ set (CMAKE_CXX_FLAGS "--sysroot ${CMAKE_OSX_SYSROOT} ${CMAKE_CXX_FLAGS}")
|
||||
|
||||
find_library (lib_ScreenSaver ScreenSaver)
|
||||
find_library (lib_IOKit IOKit)
|
||||
@@ -292,14 +292,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
||||
@@ -328,14 +328,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
||||
${OPENSSL_ROOT}/lib/libssl.lib
|
||||
${OPENSSL_ROOT}/lib/libcrypto.lib
|
||||
)
|
||||
@@ -22,8 +13,8 @@ index a2297311..25a51f56 100644
|
||||
- ${OPENSSL_ROOT}/lib/libssl.a
|
||||
- ${OPENSSL_ROOT}/lib/libcrypto.a
|
||||
- )
|
||||
-elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
+elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
-elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux|.*BSD|DragonFly")
|
||||
+elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux|Darwin|.*BSD|DragonFly")
|
||||
set (OPENSSL_LIBS ssl crypto)
|
||||
else()
|
||||
message (FATAL_ERROR "Couldn't find OpenSSL")
|
||||
|
||||
Reference in New Issue
Block a user