ps3netsrv: fix build on darwin

This commit is contained in:
Weijia Wang 2023-11-10 04:28:38 +01:00
parent 6e824a29ab
commit 70a2dc87f6

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchzip, mbedtls, meson, ninja, fetchFromGitHub }:
{ lib, stdenv, fetchzip, mbedtls, meson, ninja }:
let
webManModVersion = "1.47.42";
in
@ -19,6 +19,8 @@ stdenv.mkDerivation rec {
mbedtls
];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Doff64_t=off_t";
postInstall = ''
install -Dm644 ../LICENSE.TXT $out/usr/share/licenses/${pname}/LICENSE.TXT
'';