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

ps3netsrv: replace with webman mod fork
This commit is contained in:
Lassulus 2023-10-22 20:32:13 +01:00 committed by GitHub
commit 448f34e913
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 20 deletions

View file

@ -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.

View file

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