From 250c5580a6bdbd66e0e3d7e31103d332b6032e20 Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 20 Oct 2023 23:03:21 +0200 Subject: [PATCH 1/2] ps3netsrv: replace with webman mod fork because the original project is not compatible with the latest cfw (https://github.com/dirkvdb/ps3netsrv--/issues/18) the package is replaced with the working fork --- pkgs/servers/ps3netsrv/default.nix | 43 ++++++++++++++++-------------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/pkgs/servers/ps3netsrv/default.nix b/pkgs/servers/ps3netsrv/default.nix index 91f24a42927b..51ab46ec73b9 100644 --- a/pkgs/servers/ps3netsrv/default.nix +++ b/pkgs/servers/ps3netsrv/default.nix @@ -1,31 +1,34 @@ -{ lib, stdenv, fetchFromGitHub }: - -stdenv.mkDerivation { +{ lib, stdenv, fetchzip, mbedtls, meson, ninja, fetchFromGitHub }: +let + webManModVersion = "1.47.42"; +in +stdenv.mkDerivation rec { pname = "ps3netsrv"; - version = "1.1.0"; + version = "20220813"; - enableParallelBuilding = true; - - src = fetchFromGitHub { - owner = "dirkvdb"; - repo = "ps3netsrv--"; - rev = "e54a66cbf142b86e2cffc1701984b95adb921e81"; - sha256 = "sha256-SpPyRhPwOhTONAYH/eqLGmVl2XzhA1r1nUwKj7+rGyY="; - fetchSubmodules = true; + src = fetchzip { + url = "https://github.com/aldostools/webMAN-MOD/releases/download/${webManModVersion}/${pname}_${version}.zip"; + hash = "sha256-ynFuCD+tp8E/DDdB/HU9BCmwKcmQy6NBx26MKnP4W0o="; }; - buildPhase = "make CXX=$CXX"; - installPhase = '' - mkdir -p $out/bin - cp ps3netsrv++ $out/bin + sourceRoot = "./source/${pname}"; + + buildInputs = [ + meson + ninja + mbedtls + ]; + + postInstall = '' + install -Dm644 ../LICENSE.TXT $out/usr/share/licenses/${pname}/LICENSE.TXT ''; meta = { - description = "C++ implementation of the ps3netsrv server"; - homepage = "https://github.com/dirkvdb/ps3netsrv--"; - license = lib.licenses.mit; + description = "PS3 Net Server (mod by aldostools)"; + homepage = "https://github.com/aldostools/webMAN-MOD/"; + license = lib.licenses.gpl3; platforms = lib.platforms.unix; maintainers = with lib.maintainers; [ makefu ]; - mainProgram = "ps3netsrv++"; + mainProgram = "ps3netsrv"; }; } From d85a7949c951de2c96fbb95fe40ecd876d6412ed Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 20 Oct 2023 23:12:14 +0200 Subject: [PATCH 2/2] ps3netsrv: add notice about replacement of with webman-mod fork --- nixos/doc/manual/release-notes/rl-2311.section.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/doc/manual/release-notes/rl-2311.section.md b/nixos/doc/manual/release-notes/rl-2311.section.md index 38c89668f84a..54c4f5786b72 100644 --- a/nixos/doc/manual/release-notes/rl-2311.section.md +++ b/nixos/doc/manual/release-notes/rl-2311.section.md @@ -315,6 +315,8 @@ - `win-virtio` package was renamed to `virtio-win` to be consistent with the upstream package name. +- `ps3netsrv` has been replaced with the webman-mod fork, the executable has been renamed from `ps3netsrv++` to `ps3netsrv` and cli parameters have changed. + ## Other Notable Changes {#sec-release-23.11-notable-changes} - The Cinnamon module now enables XDG desktop integration by default. If you are experiencing collisions related to xdg-desktop-portal-gtk you can safely remove `xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];` from your NixOS configuration.