diff options
Diffstat (limited to 'pkgs/by-name/mo/moonlight-qt/package.nix')
-rw-r--r-- | pkgs/by-name/mo/moonlight-qt/package.nix | 53 |
1 files changed, 17 insertions, 36 deletions
diff --git a/pkgs/by-name/mo/moonlight-qt/package.nix b/pkgs/by-name/mo/moonlight-qt/package.nix index a0ca66b61e64..08463c37ca9d 100644 --- a/pkgs/by-name/mo/moonlight-qt/package.nix +++ b/pkgs/by-name/mo/moonlight-qt/package.nix @@ -3,8 +3,6 @@ lib, fetchFromGitHub, fetchpatch, - darwin, - overrideSDK, qt6, pkg-config, vulkan-headers, @@ -24,34 +22,23 @@ nix-update-script, }: -let - inherit (darwin.apple_sdk_11_0.frameworks) - AVFoundation - AppKit - AudioUnit - Cocoa - VideoToolbox - ; - stdenv' = if stdenv.isDarwin then overrideSDK stdenv "11.0" else stdenv; -in - -stdenv'.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "moonlight-qt"; - version = "6.0.1"; + version = "6.1.0"; src = fetchFromGitHub { owner = "moonlight-stream"; - repo = pname; - rev = "v${version}"; - hash = "sha256-zrl8WPXvQ/7FTqFnpwoXEJ85prtgJWoWNsdckw5+JHI="; + repo = "moonlight-qt"; + rev = "v${finalAttrs.version}"; + hash = "sha256-rWVNpfRDLrWsqELPFquA6rW6/AfWV+6DNLUCPqIhle0="; fetchSubmodules = true; }; patches = [ - # Don't precompile QML files with disable-prebuilts, fix build on darwin + # Fix build for Xcode < 14 (fetchpatch { - url = "https://github.com/moonlight-stream/moonlight-qt/commit/d73df12367749425b86b72c250bb0fba13ddfd29.patch"; - hash = "sha256-RIrQpZWbwUHs1Iwz/pXfXgshJeHYrzGxuaR5mRG85QY="; + url = "https://github.com/moonlight-stream/moonlight-qt/commit/76deafbd7bf868562d69061e7d6abf2612a2c7ad.patch"; + hash = "sha256-+rXdexZQpOP6yS+oTmvYVxasWxOX16uU1udN75zNX3w="; }) ]; @@ -64,7 +51,7 @@ stdenv'.mkDerivation rec { buildInputs = [ - (SDL2.override { drmSupport = stdenv.isLinux; }) + (SDL2.override { drmSupport = stdenv.hostPlatform.isLinux; }) SDL2_ttf ffmpeg libopus @@ -73,7 +60,7 @@ stdenv'.mkDerivation rec { qt6.qtsvg openssl ] - ++ lib.optionals stdenv.isLinux [ + ++ lib.optionals stdenv.hostPlatform.isLinux [ alsa-lib libpulseaudio libva @@ -82,18 +69,11 @@ stdenv'.mkDerivation rec { qt6.qtwayland wayland libdrm - ] - ++ lib.optionals stdenv.isDarwin [ - AVFoundation - AppKit - AudioUnit - Cocoa - VideoToolbox ]; qmakeFlags = [ "CONFIG+=disable-prebuilts" ]; - postInstall = lib.optionalString stdenv.isDarwin '' + postInstall = lib.optionalString stdenv.hostPlatform.isDarwin '' mkdir $out/Applications $out/bin mv app/Moonlight.app $out/Applications ln -s $out/Applications/Moonlight.app/Contents/MacOS/Moonlight $out/bin/moonlight @@ -101,16 +81,17 @@ stdenv'.mkDerivation rec { passthru.updateScript = nix-update-script { }; - meta = with lib; { + meta = { + changelog = "https://github.com/moonlight-stream/moonlight-qt/releases/tag/v${finalAttrs.version}"; description = "Play your PC games on almost any device"; homepage = "https://moonlight-stream.org"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ azuwis luc65r zmitchell ]; - platforms = platforms.all; + platforms = lib.platforms.all; mainProgram = "moonlight"; }; -} +}) |