Unverified Commit 448f34e9 authored by Lassulus's avatar Lassulus Committed by GitHub
Browse files

Merge pull request #262381 from makefu/pkgs/ps3netsrv/replace-upstream

ps3netsrv: replace with webman mod fork
parents 95ee3e83 d85a7949
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -323,6 +323,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.
+23 −20
Original line number Diff line number Diff line
{ 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";

  enableParallelBuilding = true;
  version = "20220813";

  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";
  };
}