2023-11-10 03:28:38 +00:00
|
|
|
{ lib, stdenv, fetchzip, mbedtls, meson, ninja }:
|
2023-10-20 21:03:21 +00:00
|
|
|
let
|
|
|
|
webManModVersion = "1.47.42";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ps3netsrv";
|
2023-10-20 21:03:21 +00:00
|
|
|
version = "20220813";
|
2016-09-28 11:08:30 +00:00
|
|
|
|
2023-10-20 21:03:21 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/aldostools/webMAN-MOD/releases/download/${webManModVersion}/${pname}_${version}.zip";
|
|
|
|
hash = "sha256-ynFuCD+tp8E/DDdB/HU9BCmwKcmQy6NBx26MKnP4W0o=";
|
2016-09-28 11:08:30 +00:00
|
|
|
};
|
|
|
|
|
2023-10-20 21:03:21 +00:00
|
|
|
sourceRoot = "./source/${pname}";
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
mbedtls
|
|
|
|
];
|
|
|
|
|
2023-11-10 03:28:38 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Doff64_t=off_t";
|
|
|
|
|
2023-10-20 21:03:21 +00:00
|
|
|
postInstall = ''
|
|
|
|
install -Dm644 ../LICENSE.TXT $out/usr/share/licenses/${pname}/LICENSE.TXT
|
2016-09-28 11:08:30 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2023-10-20 21:03:21 +00:00
|
|
|
description = "PS3 Net Server (mod by aldostools)";
|
|
|
|
homepage = "https://github.com/aldostools/webMAN-MOD/";
|
|
|
|
license = lib.licenses.gpl3;
|
2021-01-15 07:07:56 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = with lib.maintainers; [ makefu ];
|
2023-10-20 21:03:21 +00:00
|
|
|
mainProgram = "ps3netsrv";
|
2016-09-28 11:08:30 +00:00
|
|
|
};
|
|
|
|
}
|