add launchapplserver

This commit is contained in:
Wolfgang Thaller 2021-12-28 23:30:35 +01:00
parent 78d5e46fd2
commit 06c2a0c804

View File

@ -403,6 +403,22 @@ let
'') (builtins.attrValues individualSamples)}
'' // individualSamples;
launchapplserver = with pkgs; stdenvUniversal.mkDerivation {
name = "retro68.launchapplserver";
src = ./LaunchAPPL;
nativeBuildInputs = [ buildPackages.ninja buildPackages.cmake ];
installPhase = ''
mkdir $out
mkdir -p $out/Applications
mkdir -p $out/Applications/.finf
mkdir -p $out/Applications/.rsrc
cp Server/LaunchAPPLServer.APPL $out/Applications
cp Server/.finf/LaunchAPPLServer.APPL $out/Applications/.finf
cp Server/.rsrc/LaunchAPPLServer.APPL $out/Applications/.rsrc
cp Server/LaunchAPPLServer.bin $out/Applications
'';
};
};
} // prev.lib.optionalAttrs (prev.targetPlatform ? retro68) {
@ -429,6 +445,17 @@ let
];
};
stdenvUniversal = pkgs.stdenv.override {
cc = pkgs.stdenv.cc.override {
extraPackages = with pkgs.retro68; [
universal
import_libraries
libretro
setup_hook
];
};
};
# no separate libc package for now
libcCrossChooser = name:
if name == "retro68" then null else prev.libcCrossChooser name;