diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-03-14 08:14:07 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-03-14 08:14:26 +0100 |
commit | 6b67186fe9a8c05ba3dca00cd7f3434e97c5c0f3 (patch) | |
tree | c40727f67b4ac1f249ee61aee61db419b1b27341 /pkgs/misc | |
parent | 08d2b1131869e00946d351050f1b92f259f25cff (diff) | |
parent | db8d5902ad3666208236a685c82e50bc8bc47706 (diff) |
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts: - pkgs/development/python-modules/crownstone-cloud/default.nix - pkgs/development/python-modules/exrex/default.nix - pkgs/development/python-modules/mkdocs-minify/default.nix - pkgs/development/python-modules/myjwt/default.nix - pkgs/development/tools/analysis/checkov/default.nix
Diffstat (limited to 'pkgs/misc')
-rw-r--r-- | pkgs/misc/dxvk/dxvk.nix | 2 | ||||
-rw-r--r-- | pkgs/misc/scrcpy/default.nix | 24 | ||||
-rw-r--r-- | pkgs/misc/wiki-tui/default.nix | 2 |
3 files changed, 21 insertions, 7 deletions
diff --git a/pkgs/misc/dxvk/dxvk.nix b/pkgs/misc/dxvk/dxvk.nix index 793264f9b30b8..e0aa7105bb35d 100644 --- a/pkgs/misc/dxvk/dxvk.nix +++ b/pkgs/misc/dxvk/dxvk.nix @@ -64,7 +64,7 @@ stdenv.mkDerivation { inherit (srcs.${dxvkVersion}) version src patches; nativeBuildInputs = [ glslang meson ninja ]; - buildInputs = lib.optional isWindows [ windows.pthreads ] + buildInputs = lib.optionals isWindows [ windows.pthreads ] ++ lib.optionals isDxvk2 ( [ spirv-headers vulkan-headers ] ++ lib.optional (!isWindows && sdl2Support) SDL2 diff --git a/pkgs/misc/scrcpy/default.nix b/pkgs/misc/scrcpy/default.nix index fa2fab2d96274..277a53e253a2c 100644 --- a/pkgs/misc/scrcpy/default.nix +++ b/pkgs/misc/scrcpy/default.nix @@ -1,4 +1,9 @@ -{ lib, stdenv, fetchurl, fetchFromGitHub, makeWrapper +{ lib +, stdenv +, fetchpatch +, fetchurl +, fetchFromGitHub +, makeWrapper , meson , ninja , pkg-config @@ -12,10 +17,10 @@ }: let - version = "1.25"; + version = "2.0"; prebuilt_server = fetchurl { url = "https://github.com/Genymobile/scrcpy/releases/download/v${version}/scrcpy-server-v${version}"; - sha256 = "sha256-zgMGx7vQaucvbQb37A7jN3SZWmXeceCoOBPstnrsm9s="; + sha256 = "sha256-niQWFfV4zWkLtDMRAA3r3s9qnFCnCCsAGVLxj28h3cI="; }; in stdenv.mkDerivation rec { @@ -26,9 +31,18 @@ stdenv.mkDerivation rec { owner = "Genymobile"; repo = pname; rev = "v${version}"; - sha256 = "sha256-4U/ChooesjhZSvxvk9dZrpZ/X0lf62+LEn72Ubrm2eM="; + sha256 = "sha256-PWH+XLKraFfjXovnZpREXBaQVyOyP8yIMYDMiF6ddXg="; }; + # Remove in the next patch release + patches = [ + (fetchpatch { + name = "fix-macos-build-error.patch"; + url = "https://github.com/Genymobile/scrcpy/commit/6b769675fa68e60c9765022e43c4d7b1e329353a.patch"; + hash = "sha256-lQx01HI0nTWdZFusLIswZT2iOgkP84btqF6F58tGNko="; + }) + ]; + # postPatch: # screen.c: When run without a hardware accelerator, this allows the command to continue working rather than failing unexpectedly. # This can happen when running on non-NixOS because then scrcpy seems to have a hard time using the host OpenGL-supporting hardware. @@ -63,7 +77,7 @@ stdenv.mkDerivation rec { homepage = "https://github.com/Genymobile/scrcpy"; sourceProvenance = with sourceTypes; [ fromSource - binaryBytecode # server + binaryBytecode # server ]; license = licenses.asl20; platforms = platforms.unix; diff --git a/pkgs/misc/wiki-tui/default.nix b/pkgs/misc/wiki-tui/default.nix index bb5fef313fa3e..13f029ecd14ab 100644 --- a/pkgs/misc/wiki-tui/default.nix +++ b/pkgs/misc/wiki-tui/default.nix @@ -26,7 +26,7 @@ rustPlatform.buildRustPackage rec { buildInputs = [ ncurses openssl - ] ++ lib.optional stdenv.isDarwin [ + ] ++ lib.optionals stdenv.isDarwin [ Security ]; |