mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-25 21:29:51 +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)}
|
'') (builtins.attrValues individualSamples)}
|
||||||
'' // 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) {
|
} // 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
|
# no separate libc package for now
|
||||||
libcCrossChooser = name:
|
libcCrossChooser = name:
|
||||||
if name == "retro68" then null else prev.libcCrossChooser name;
|
if name == "retro68" then null else prev.libcCrossChooser name;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user