From 9236e8ff31d28733077cb36a895e94e4fd217d67 Mon Sep 17 00:00:00 2001 From: Zhong Jianxin Date: Sun, 12 May 2024 19:18:49 +0800 Subject: [PATCH] uxplay: migrate to pkgs/by-name and other enhancements - Format using nixfmt-rfc-style - Add passthru.updateScript - Add meta.changelog --- .../ux/uxplay/package.nix} | 29 +++++++++++-------- pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 17 insertions(+), 14 deletions(-) rename pkgs/{servers/uxplay/default.nix => by-name/ux/uxplay/package.nix} (77%) diff --git a/pkgs/servers/uxplay/default.nix b/pkgs/by-name/ux/uxplay/package.nix similarity index 77% rename from pkgs/servers/uxplay/default.nix rename to pkgs/by-name/ux/uxplay/package.nix index 34c0a59e84ad..53c2c76f5ab5 100644 --- a/pkgs/servers/uxplay/default.nix +++ b/pkgs/by-name/ux/uxplay/package.nix @@ -1,14 +1,16 @@ -{ lib -, stdenv -, fetchFromGitHub -, cmake -, openssl -, libplist -, pkg-config -, wrapGAppsHook3 -, avahi -, avahi-compat -, gst_all_1 +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + openssl, + libplist, + pkg-config, + wrapGAppsHook3, + avahi, + avahi-compat, + gst_all_1, + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { @@ -47,12 +49,15 @@ stdenv.mkDerivation (finalAttrs: { gst_all_1.gst-libav ]; + passthru.updateScript = nix-update-script { }; + meta = { + changelog = "https://github.com/FDH2/UxPlay/releases/tag/v${finalAttrs.version}"; description = "AirPlay Unix mirroring server"; homepage = "https://github.com/FDH2/UxPlay"; license = lib.licenses.gpl3Plus; + mainProgram = "uxplay"; maintainers = [ lib.maintainers.azuwis ]; platforms = lib.platforms.unix; - mainProgram = "uxplay"; }; }) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4f133b168a9f..afcb37792853 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26691,8 +26691,6 @@ with pkgs; urserver = callPackage ../servers/urserver { }; - uxplay = callPackage ../servers/uxplay { }; - vouch-proxy = callPackage ../servers/vouch-proxy { }; virtiofsd = callPackage ../servers/misc/virtiofsd { };