mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-28 21:49:33 +00:00
add launchapplserver
This commit is contained in:
parent
78d5e46fd2
commit
06c2a0c804
27
default.nix
27
default.nix
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user